aboutsummaryrefslogtreecommitdiff
path: root/tests/run/i2163.scala
blob: 67c4adb31e54722e4e342759edd4ea4a182d4e8c (plain) (blame)
1
2
3
4
5
6
7
8
9
class Base(f: Int => Int) {
  f(3)
}

class Child(x: Int) extends Base(y => x + y)

object Test {
  def main(args: Array[String]): Unit = new Child(4)
}