object Arity1 extends App{
def say(something:String) = println(something)
say ("this works")
this say "this too"
say "this shouldn't?"
}
最后一句话是有道理的,不编译的原因是什么?
object Arity1 extends App{
def say(something:String) = println(something)
say ("this works")
this say "this too"
say "this shouldn't?"
}
最后一句话是有道理的,不编译的原因是什么?