You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The is-type operator returns false when the left operand is null, for example in e is string?. It should therefore be a semantic error when the type given is a nullable reference type, as in this example. We already make that an error for the is-pattern operator, for example in e is string? s.
The text was updated successfully, but these errors were encountered:
…d into semantic analysis
- Move error checking for invalid array dimensions out of the parser and into semantic analysis
- Diagnose `e is string?`
Fixesdotnet#32025
The is-type operator returns
false
when the left operand isnull
, for example ine is string?
. It should therefore be a semantic error when the type given is a nullable reference type, as in this example. We already make that an error for the is-pattern operator, for example ine is string? s
.The text was updated successfully, but these errors were encountered: