aboutsummaryrefslogtreecommitdiff
path: root/tests/run/i2163.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/i2163.scala')
-rw-r--r--tests/run/i2163.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run/i2163.scala b/tests/run/i2163.scala
new file mode 100644
index 000000000..67c4adb31
--- /dev/null
+++ b/tests/run/i2163.scala
@@ -0,0 +1,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)
+}