scala> :pa -java
// Entering paste mode (ctrl-D to finish)
package p;
public class X {
}
// Exiting paste mode... now compiling with javac.
scala> class Y extends p.X
class Y
scala> :pa
// Entering paste mode (ctrl-D to finish)
package p
class Z extends X
// Exiting paste mode... now compiling with scalac.
but I can't test Java interop from the Java side.
scala> :pa -java
// Entering paste mode (ctrl-D to finish)
package p;
public class W extends Z {
}
// Exiting paste mode... now compiling with javac.
Compilation failed! cannot find symbol
symbol: class Z
Reproduction steps
Scala version: 2.13.15
but I can't test Java interop from the Java side.
Problem
Testing interop is the point of the feature.