-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remaining work for C# 9 pattern-matching changes #41502
Labels
Milestone
Comments
gafter
added
Area-Compilers
Feature Request
New Language Feature - Pattern Matching
Pattern Matching
labels
Feb 7, 2020
This was referenced Feb 24, 2020
To my surprise, both of these work already. var x0 = obj is (int i) _;
var x1 = obj is var (x); |
@alrz Then I have to make sure they continue to work. |
FWIW, another way to disambiguate would be |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
The following is the remaining work items not yet implemented for the C# 9 pattern-matching changes described in dotnet/csharplang#2850
not
,and
,or
, and relational patterns #41503)decimal
. (Implementation of relational patterns for decimal (C# 9.0) #41697)and
pattern, use the type from the left as the input type for the right. This requires some spec work.or
,not
, etc.byte
andsbyte
switches. (Document known breaking changes in C# 9.0. #42632)not
is considered a type in C# 8 and a pattern in C# 9. (Document known breaking changes in C# 9.0. #42632)and
andor
are allowed as variable names in C# 8, but are pattern combinators in C# 9. (Document known breaking changes in C# 9.0. #42632)Open Issues
or
pattern? The current spec (common type) doesn't work as the common type permits representation-changing conversions (e.g. forint or long
).e is dynamic
a "pure" null check? [Seeis dynamic
should be treated as a "pure null" check #40960 ; not a pattern-matching issue]The text was updated successfully, but these errors were encountered: