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
packagea;
abstractclassA {
public final void m() { System.out.println("hi"); }
}
Test.scala
packagea {
// A is a class, so W does not conform to A in bytecode. an access (w: W).m() requires a cast to A.// If `A` is not accessible, there's no solution, need to issue an error. Currently crashes.traitWextendsAclassCextendsW
}
objectTest {
defmain(args: Array[String]):Unit= {
valw: a.W=new a.C
w.m()
}
}
Crashes
java.lang.IllegalAccessError: tried to access class a.A from class Test$
The text was updated successfully, but these errors were encountered:
A.java
Test.scala
Crashes
The text was updated successfully, but these errors were encountered: