Skip to content

Instantly share code, notes, and snippets.

@jaju
Created August 13, 2012 13:19
Show Gist options
  • Save jaju/3340649 to your computer and use it in GitHub Desktop.
Save jaju/3340649 to your computer and use it in GitHub Desktop.
Something that fails when "sbt run"
// do "sbt run" to see exceptions while running main (although main is discovered fine.)
trait Foo[+A]
// Change trait to class, and it works.
object Foo {
def main(args: Array[String]) : Unit = println("Hello, Foo!")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment