Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
20:58 ~/Projects/2117/sandbox (HEAD)$ cat Test.scala
object Predef {
def blahblah: Int = ???
}
20:58 ~/Projects/2117/sandbox (HEAD)$ scalac Test.scala
20:58 ~/Projects/2117/sandbox (HEAD)$ ls -la
total 24
drwxr-xr-x 5 xeno_by staff 170 Oct 28 20:57 .
drwxr-xr-x 37 xeno_by staff 1258 Jul 30 14:47 ..
-rw-r--r-- 1 xeno_by staff 564 Oct 28 20:58 Predef$.class
-rw-r--r-- 1 xeno_by staff 471 Oct 28 20:58 Predef.class
-rw-r--r-- 1 xeno_by staff 44 Oct 28 20:58 Test.scala
20:58 ~/Projects/2117/sandbox (HEAD)$ javap Predef
Compiled from "Test.scala"
public final class Predef {
public static int blahblah();
}
20:58 ~/Projects/2117/sandbox (HEAD)$ javap Predef\$
Compiled from "Test.scala"
public final class Predef$ {
public static final Predef$ MODULE$;
public static {};
public int blahblah();
}
20:58 ~/Projects/2117/sandbox (HEAD)$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.