Infer nullability of receiver from ?.
expression compared with non-null
#31906
Labels
4 - In Review
A fix for the issue is submitted for review.
Area-Compilers
Bug
New Language Feature - Nullable Reference Types
Nullable Reference Types
Milestone
Currently reporting a warning for second
s.ToString();
[jcouv update:] relates to #27928 (nullability analysis of
==
). If we learn thatx == 1
means thatx
is non-null, then the above behavior should fall out.The text was updated successfully, but these errors were encountered: