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
#nullable enable
namespaceSystem{// struct with two valuespublicstructValueTuple<T1,T2>whereT1:objectwhereT2:object{publicT1Item1;publicT2Item2;publicValueTuple(T1item1,T2item2){this.Item1=item1;this.Item2=item2;}publicoverridestringToString(){return"";}}}classC{voidM((string?,string)a){string?s=null;varx=("",s);}}
The compiler will issue a warning for the tuple inside the method signature but not inside the method body.
The text was updated successfully, but these errors were encountered:
Consider the following code:
The compiler will issue a warning for the tuple inside the method signature but not inside the method body.
The text was updated successfully, but these errors were encountered: