You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Odd. The top expression defines a variable within a not pattern. @RikkiGibson do you know why the top is allowed but the bottom isn't. I keep looking at them and they seem functionally identical. It's unclear to me why the second form isn't ok.
My recollection is that 'is not A a' is a special case and it's generally not allowed in other contexts. Would need to dig up the and/or/not patterns proposal to recall why.
Version Used:
Version 17.6.0 Preview 2.0 [33420.113.main]
Steps to Reproduce:
Diagnostic Id:
IDE0260
Expected Behavior:
No warning.
Actual Behavior:
IDE0260 fires and recommends changing:
to:
which is invalid and results in:
The text was updated successfully, but these errors were encountered: