! on nullable argument should suppress subsequent CS8602 #37071
Labels
Area-Compilers
Feature - Nullable Reference Types
Nullable Reference Types
Resolution-By Design
The behavior reported in the issue matches the current design
Milestone
Version Used: 3.3.0-beta1-19327-04
Steps to Reproduce:
It seems we don't have a way of annotating
EnsuresNotNull
to say that it throws if its argument isnull
(DoesNotReturnIf
in #36810 gets close).In the absence of that, I'd be happy to
!
arguments to such guard methods. It feels consistent and local. It'll also be easy to regex out of code later if I'm able to annotate the guard function in future.The text was updated successfully, but these errors were encountered: