Skip to content

Instantly share code, notes, and snippets.

@kmizu
Created July 31, 2011 05:04
Show Gist options
  • Save kmizu/1116423 to your computer and use it in GitHub Desktop.
Save kmizu/1116423 to your computer and use it in GitHub Desktop.
This program compiles and is executable as scala foo.class
package foo
object `class` {
def main(args: Array[String]) {
println("foo")
}
}
@kmizu
Copy link
Author

kmizu commented Jul 31, 2011

scalac foo.scala
scala foo.class
foo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment