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
I will collect a few examples to show how we treat tuples element-wise in type inference and with regards to variance, but we don't do so for nullability analysis.
#nullable enable
classProgram{staticvoidF((object?,int?)t){_=((object,int?))t;// not great warning CS8619: Nullability of reference types in value of type '(object?, int?)' doesn't match target type '(object, int?)'._=(object)t.Item1;_=((string?,int))t;// not great warning CS8619: Nullability of reference types in value of type '(object?, int?)' doesn't match target type '(string?, int)'._=(int)t.Item2;}}
The text was updated successfully, but these errors were encountered:
I will collect a few examples to show how we treat tuples element-wise in type inference and with regards to variance, but we don't do so for nullability analysis.
The text was updated successfully, but these errors were encountered: