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
Yes, that's by design. The clause you cite rules out SAM types. I believe converting unapplied functions to SAM types is dicey anyway, in the sense that it can easily give something unexpected. I personally would have preferred to only convert lambdas to SAMs, not method handles. That ship has sailed, but I am against introducing even more flexibility here.
The folowing doesn't compile, @odersky is this by design?
The error is:
https://dotty.epfl.ch/docs/reference/changed-features/eta-expansion-spec.html doesn't mention SAM types, it just says
The text was updated successfully, but these errors were encountered: