Created
May 21, 2011 16:34
-
-
Save kmizu/984664 to your computer and use it in GitHub Desktop.
A package object that have case classes and main method.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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