使用Scala的命令行REPL: def foo(x: Int): Unit = {} def foo(x: String): Unit = {println(foo(2))} 给予error: type mismatch; found: Int(2) requi.
確定! 回上一頁