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
It's the usual limitations with type inference going through the body of a lambda, Scala 2 manages to get that example working but it fails if we just replace mounted by x => mounted(x), so it must be a pretty narrow special-case. I'm interested in solving the general problem (#9076), but less so in adding more special-cases, unless they're really common.
Note: Sorry for the poor title choice. I can't think of a concise way to describe this more accurately. Feel free to rename of course.
Compiler version
3.0.0-RC1
Minimized code
Output
Expectation
It should compile. Scala 2.x compiles without problem.
The text was updated successfully, but these errors were encountered: