aboutsummaryrefslogtreecommitdiff
path: root/tests/run/function-arity.scala
blob: 6d7e5bce10fbd231a71c29aaa1575c02e4456697 (plain) (blame)
1
2
3
4
5
6
7
8
object Test {
  class T[A] { def foo(f: (=> A) => Int) = f(???) }

  def main(args: Array[String]): Unit = {
    new T[(Int, Int)].foo((ii) => 0)
    new T[(Int, Int)].foo((x, y) => 0) // check that this does not run into ???
  }
}