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

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

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