Welcome to Scala version 2.10.2
Type in expressions to have them evaluated.
Type :help for more information.
scala> val fn = (x:Int) => x+1
fn: Int => Int = <function1>
scala> val fn1 = fn _
fn1: () => Int => Int = <function0>
scala> val fn2 = fn1 _
fn2: () => () => Int => Int = <function0>
我不明白为什么函数的占位符(没有建议的类型)应用程序正在创建一个带有前缀附加 void 参数的新柯里化函数。
我期待一个编译器错误或至少一个警告。