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
Then use the classfiles from Scala 2 when compiling the second file with Scala 3
//>usingscala3.6.3@main defTest=Foo.a
Output
Exception in thread "main" java.lang.NoSuchMethodError:'scala.runtime.Nothing$[] Foo$.a()'
at playground$package$.Test(playground.scala:1)
at Test.main(playground.scala:1)
Expectation
Work at runtime. The issue was introduced by #11846
Notes
Same if we have in the return type Array[scala.Null]