-
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
Exhaustiveness check quacked on nested deconstruction #55719
Comments
Few observations: The warning is produced if one the following changes are made: |
Possible duplicate of #52714 |
Definitely a duplicate. |
@333fred The behavior I'm observing (stated in #55719 (comment)) doesn't seem to apply on the other issue. Is the reason known? If not, I think it's worth keeping this one open and see if a fix for #52714 also fixes this one or not. |
Ah, you're right Youssef, this is not a duplicate. |
We do expect a warning here because in this scenario the nullable context is enabled. I wouldn't particularly expect a fix for this to change the behavior in #52714. |
Version Used:
Mine is 6.0.100-preview.6.21355.2, not sure which one is on sharplab, but it's also reproducable there.
Steps to Reproduce:
Create a record of two props with a property being this record. Switch over null and over
(var ..., (var ..., tail)
:Expected Behavior:
Warning, because
(_, null)
case not coveredActual Behavior:
No warning.
The text was updated successfully, but these errors were encountered: