Skip to content

Instantly share code, notes, and snippets.

@DmytroMitin
Last active March 6, 2023 15:43
Show Gist options
  • Select an option

  • Save DmytroMitin/4931d890b80251774c7bfa0fe3caec5f to your computer and use it in GitHub Desktop.

Select an option

Save DmytroMitin/4931d890b80251774c7bfa0fe3caec5f to your computer and use it in GitHub Desktop.
$ scalac potato.scala
$ ls
potato.class potato$.class potato.scala
$ javap -p potato.class
Compiled from "potato.scala"
public final class potato {
public static void dirt_$eq(int);
public static int dirt();
}
$ javap -p potato\$.class
Compiled from "potato.scala"
public final class potato$ implements scala.Serializable {
public static potato$ MODULE$;
private int dirt;
public static {};
public int dirt();
public void dirt_$eq(int);
private java.lang.Object readResolve();
private potato$();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment