Skip to content
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

Implement designator restrictions for C# 9.0 patterns #40543

Merged
merged 4 commits into from
Jan 6, 2020

Conversation

gafter
Copy link
Member

@gafter gafter commented Dec 21, 2019

Fixes #40533

Relates to dotnet/csharplang#2850
Relates to #40727 (test plan for C# 8 patterns)

@gafter gafter added this to the Compiler.Net5 milestone Dec 21, 2019
@gafter gafter requested a review from a team as a code owner December 21, 2019 01:37
@gafter gafter self-assigned this Dec 21, 2019
@gafter
Copy link
Member Author

gafter commented Dec 23, 2019

@agocke @RikkiGibson @dotnet/roslyn-compiler Could you please review this change in support for C# 9.0 pattern-matching? #Resolved

@gafter
Copy link
Member Author

gafter commented Jan 3, 2020

@dotnet/roslyn-compiler Could I please get a review from a Sr engineer? #Resolved

@jcouv
Copy link
Member

jcouv commented Jan 3, 2020

Looking.

Could you open a test plan issue (requires coming up with a moniker for feature, perhaps "combinator patterns")? #Resolved

if (o is 1 or int y3) { }
if (o is (1 or 2) or int y4) { }
if (o is not int y5) { }
if (o is not (1 and int y6)) { }
Copy link
Member

@jcouv jcouv Jan 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider other nesting cases: Point { X: var x } or Animal and Point (var x, _) or Animal and is object or (1 or var x), etc #Resolved

Copy link
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks (iteration 2)

@jcouv jcouv self-assigned this Jan 3, 2020
@gafter
Copy link
Member Author

gafter commented Jan 3, 2020

#40727


In reply to: 570664618 [](ancestors = 570664618)

Copy link
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks (iteration 3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants