Created
August 13, 2012 13:19
-
-
Save jaju/3340649 to your computer and use it in GitHub Desktop.
Something that fails when "sbt run"
This file contains 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
// 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