-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
4 - In ReviewA fix for the issue is submitted for review.A fix for the issue is submitted for review.Area-CompilersFeature - Pattern MatchingPattern MatchingPattern Matching
Milestone
Description
Branch: extended-property-patterns
We've relaxed pattern parsing to accept null-suppression and pointer access for error recovery.
As a consequence, the following is now valid:
public class C {
public void M() {
const C c = null;
if (this is c!) {}
}
}Any other case is caught by "constant expected" error, however, that specific scenario satisfies all the other requirements.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
4 - In ReviewA fix for the issue is submitted for review.A fix for the issue is submitted for review.Area-CompilersFeature - Pattern MatchingPattern MatchingPattern Matching