-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
ENC support for C#7.0: out var, ref, tuple and pattern matching #19063
Conversation
This one is not fixed yet: #12435 -- we don't have switch statement working yet. |
Do we want to maintain missing switch statement support in pattern matching separately ? |
This change looks good as far as it goes, but I am missing some context. I thought that to enable EnC for C# 7 features (such as switch, out var, deconstruction) we needed at least two things:
I this rough understanding correct? Have the latter been done already? |
@jcouv Yes, that's correct. Ivan did both. The latter didn't need any changes in the compiler as it turned out the right syntax nodes were already associated with the local symbols. |
Very cool. Nice! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you, everybody, for the review and help! I have updated reference to #12435 in the description. |
Tagging @MattGertz for Ask mode approval |
Customer scenario
Provides ENC support for C#7.0:
Unit tests provided. Also I verified EnC scenarios manually.
Bugs this fixes:
Fixes #17896
Fixes #12436
Fixes #16960
Some works towards #12435
Workarounds, if any
Risk
Low
Performance impact
Low
Is this a regression from a previous update?
Root cause analysis:
How did we miss it? What tests are we adding to guard against it in the future?
How was the bug found?
Planned