Skip to content

Instantly share code, notes, and snippets.

@yamashiro
Created May 4, 2012 12:06
Show Gist options
  • Save yamashiro/2594443 to your computer and use it in GitHub Desktop.
Save yamashiro/2594443 to your computer and use it in GitHub Desktop.
呼び出し順番むずいぉ
trait Base extends App {
def doRun(args:Array[String]);
doRun(args)
}
object ConcreteClass extends Base {
def doRun(args:Array[String]) {
println(args)
}
}
@yamashiro
Copy link
Author

traitをabstract class にしたら思ってるように動いた…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment