Open japgolly opened 3 years ago
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 (https://github.com/lampepfl/dotty/pull/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.