Open WhiteBlackGoose opened 3 years ago
Few observations:
The warning is produced if one the following changes are made:
Possible duplicate of https://github.com/dotnet/roslyn/issues/52714
Definitely a duplicate.
@333fred The behavior I'm observing (stated in https://github.com/dotnet/roslyn/issues/55719#issuecomment-901691189) 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.