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
Exception in thread "main" java.lang.NoSuchMethodError: Foo.foo$(LFoo;)Ljava/lang/String;
at TestFoo$$anon$1.foo(TestFoo.scala:5)
at TestFoo$.main(TestFoo.scala:5)
at TestFoo.main(TestFoo.scala)
...
expectation
Anonymous subclasses of traits generated by Scala 2.13.x implement methods by calling a static forwarder on the generated Interface.
The text was updated successfully, but these errors were encountered:
Dotty and Scala 2 use a some what different trait encoding. For differences in forwarders see #5928, for differences in initialization see scala/scala-dev#642. It's likely that we'll end up changing both scalac and dotty to converge to a single representation, but until that happens feel free to make a PR adding static forwarders to Dotty if that makes your work easier.
So I believe this should be closed in favour of an issue to move the whole scala 2 scheme over, as seen here field initialisation and access just isn't compatible
minimized code
compile with dotc
19.0-RC1
compile with scalacenter/scala@a8f11ef
runtime error:
expectation
Anonymous subclasses of traits generated by Scala 2.13.x implement methods by calling a static forwarder on the generated Interface.
The text was updated successfully, but these errors were encountered: