Skip to content

Instantly share code, notes, and snippets.

@xeno-by
Created October 28, 2015 19:58
Show Gist options
  • Save xeno-by/4a18a8664bb4de6346a4 to your computer and use it in GitHub Desktop.
Save xeno-by/4a18a8664bb4de6346a4 to your computer and use it in GitHub Desktop.
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