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
Definitely an interesting case! Would have to see how the spec works here. but i soemwhat agree. This feels like it should fall out from lambda return types and variance. i wonder if there's some rule preventing this, or if ti's an accidental compiler bug.
If F has an explicitly typed parameter list, each parameter in D has the same modifiers as the corresponding parameter in F and an identity conversion exists between the corresponding parameter in F.
I think as long as the delegate is covariant this should work since an indirect assignment of the same expression is valid.
The text was updated successfully, but these errors were encountered: