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
[error] .../scala2/Scala2.scala:6:23: type mismatch;
[error] found : Scala3#InnerClass
[error] required: Scala3.this.InnerClass
[error] ThingDoer.doThing(inner)
[error] ^
[error] one error found
Problem
I'd expect this to compile, since ThingDoer.doThing expects a Scala3#InnerClass, which is the type of inner. I'm not even sure what the Scala3.this.InnerClass type is, since that only seems to make sense within the context of Scala3, not ThingDoer. This works if Scala2.scala is compiled with Scala 3, indicating that this is probably an issue with Scala 2's TASTy reader.