aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t460.scala
blob: 3fc13e4dd0365a8a0230dc79cbb3f076c7bd300b (plain) (tree)
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)
}