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
The null check of a generic argument must be done with a 'if', but intelisense says we can simplified with the '??' operator. But the '??' operator is valid only if the Type of the generic argument has the 'class' constraint, the intellisense don't care about that.
I tried to reproduce this in 15.6.2 but only get the fix offered if I add a class constraint. Could you try updating to a new version and see if the problem persists? Thanks!
The null check of a generic argument must be done with a 'if', but intelisense says we can simplified with the '??' operator. But the '??' operator is valid only if the Type of the generic argument has the 'class' constraint, the intellisense don't care about that.
This issue has been moved from https://developercommunity.visualstudio.com/content/problem/211735/inccorect-null-check-can-be-simplified-1.html
VSTS ticketId: 579839
These are the original issue comments:
(no comments)
These are the original issue solutions:
(no solutions)
The text was updated successfully, but these errors were encountered: