Nullable array types are accepted in declaration patterns #31991
Labels
Area-Compilers
Bug
Feature - Nullable Reference Types
Nullable Reference Types
Feature - Pattern Matching
Pattern Matching
Milestone
Version Used: NullableReferenceTypes (2f8fefa)
Steps to Reproduce:
Expected Behavior:
Error on third line as well. Patterns don't support nullable types.
Plus, I don't know why the first two are decided to be valid.
Actual Behavior:
Errors only on non-array nullables in patterns.
The text was updated successfully, but these errors were encountered: