Skip to content

Instantly share code, notes, and snippets.

@kmizu
Created July 29, 2019 15:11
Show Gist options
  • Save kmizu/321bbbf2e87cb627e18b8dc16e3f80ff to your computer and use it in GitHub Desktop.
Save kmizu/321bbbf2e87cb627e18b8dc16e3f80ff to your computer and use it in GitHub Desktop.
A.scala
class A {
def foo(x: Int): Int = 1
}
$ javap -c -private A
Compiled from "A.scala"
public class A {
public int foo(int);
Code:
0: iconst_1
1: ireturn
public A();
Code:
0: aload_0
1: invokespecial #18 // Method java/lang/Object."<init>":()V
4: return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment