Created
May 4, 2012 12:06
-
-
Save yamashiro/2594443 to your computer and use it in GitHub Desktop.
呼び出し順番むずいぉ
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
trait Base extends App { | |
def doRun(args:Array[String]); | |
doRun(args) | |
} | |
object ConcreteClass extends Base { | |
def doRun(args:Array[String]) { | |
println(args) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
traitをabstract class にしたら思ってるように動いた…