summaryrefslogblamecommitdiff
path: root/test/files/pos/bug460.scala
blob: 7bf9374e917c4f9ac734b36d0188003f0239c36e (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)
}