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
For a null_conditional_expression E with a primary_expression P, let E0 be the expression obtained by textually removing the leading ? from each of the null_conditional_operations of E that have one.
Later, T0 is defined as the type of E0.
This seems to fall short in the case of nullable value types:
var d = (DateTime?)DateTime.Now;
var y = d?.Year; // valid
E0 according to the spec would be d.Year, which is not valid. What is T0 in this case?