Created
November 20, 2014 02:56
-
-
Save stantonk/fe5a94bc0011a71aadbd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Main.scala | |
class C { | |
var x = 0 | |
} | |
object Main extends App { | |
val c = new C() | |
println("c = " + c.x) | |
} | |
// Disassembled C.class | |
$ javap C | |
Compiled from "Main.scala" | |
public class C extends java.lang.Object{ | |
public int x(); | |
public void x_$eq(int); | |
public C(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment