blob: 466d06c2ad3b628179e2878325112be3472860eb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
object Bug460 {
def testFun(x : Int, y : Int) = x + y
val fn = testFun _
fn(1, 2) // Ok
(testFun(_, _))(1, 2) // Ok
(testFun _).apply(1, 2)
(testFun _)(1, 2) // Error! (but no longer)
}
|