标签: scala
这为什么起作用
class Printer { def printMe(text: String): Unit = println(text) } val e:Printer = new Printer() e printMe "Good"
但不是这样:(我有:方法printMe(String)的缺少参数)
def printMe(text: String): Unit = println(text) printMe "Bad"