trait Weapon {
val strength: Int
}
scalac後javapで表示
$ javap -c Weapon
Compiled from "test.scala"
public interface Weapon {
public abstract int strength();
}
trait Weapon {
val strength: Int
}
scalac後javapで表示
$ javap -c Weapon
Compiled from "test.scala"
public interface Weapon {
public abstract int strength();
}