Skip to content

Instantly share code, notes, and snippets.

@kmizu
Created May 21, 2011 16:34
Show Gist options
  • Save kmizu/984664 to your computer and use it in GitHub Desktop.
Save kmizu/984664 to your computer and use it in GitHub Desktop.
A package object that have case classes and main method.
package object foobar {
case class A
case class B
def main(args: Array[String]) {
println("Hello")
}
}
// scalac package.scala
// scala foobar.package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment