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
wip: drop add interfaces, straight to interface from trait
what could possibly go wrong
/*
* Decompiled with CFR 0_101.
*
* Could not load the following classes:
* scala.reflect.ScalaSignature
*/
import scala.reflect.ScalaSignature;
@ScalaSignature(bytes="\u0006\u0001\t2q!\u0001\u0002\u0011\u0002\u0007\u0005QAA\u0001U\u0015\u0005\u0019\u0011a\u0002\u001ff[B$\u0018PP\u0002\u0001'\t\u0001a\u0001\u0005\u0002\b\u00155\t\u0001BC\u0001\n\u0003\u0015\u00198-\u00197b\u0013\tY\u0001B\u0001\u0004B]f\u0014VM\u001a\u0005\u0006\u001b\u0001!\tAD\u0001\u0007I%t\u0017\u000e\u001e\u0013\u0015\u0003=\u0001\"a\u0002\t\n\u0005EA!\u0001B+oSRDQa\u0005\u0001\u0005\u0002Q\t\u0011\u0001_\u000b\u0002+A\u0011qAF\u0005\u0003/!\u00111!\u00138u\u0011\u0015I\u0002A\"\u0001\u001b\u0003\u0005IX#A\u000e\u0011\u0005qybBA\u0004\u001e\u0013\tq\u0002\"\u0001\u0004Qe\u0016$WMZ\u0005\u0003A\u0005\u0012aa\u0015;sS:<'B\u0001\u0010\t\u0001")
public interface T {
default public int x() {
return 3;
}
public String y();
default public void $init$() {
}
}
➜ scala git:(defaults) ✗ cat /Users/adriaan/Desktop/trait_accessors.scala
trait T {
def x: Int = 3
def y: String
}
object O extends T {
val y = "2"
def main(args: Array[String]): Unit = {
println(x + y)
}
}%
0 commit comments