[error] <REDACTED>/scala2/Main.scala:2:45: can't find type required by parameter inner in class Child.Middle: Child.this.Inner; perhaps it is missing from the classpath.
[error] def useMiddle(child: Child)(middle: child.Middle): Unit = ???
[error] ^
[error] one error found
I'd expect this to compile.
Reproduction steps
Scala 2 version: 2.13.18
Scala 3 version: 3.7.4
Clone this minimum reproducibility case:
https://github.com/jadenPete/scala-cant-find-type-bug-reproduction
Run
sbt compileObserve the following compilation error:
Problem
I'd expect this to compile.