summaryrefslogtreecommitdiff
path: root/test/files/run/t9223b.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t9223b.scala')
-rw-r--r--test/files/run/t9223b.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/t9223b.scala b/test/files/run/t9223b.scala
new file mode 100644
index 0000000000..2afc7ddfe0
--- /dev/null
+++ b/test/files/run/t9223b.scala
@@ -0,0 +1,8 @@
+class X(x: => String) { def xx = x }
+class Y(y: String) extends X(y) { def f = y }
+
+object Test {
+ def main(args: Array[String]): Unit = {
+ assert(new Y("hi").f == "hi")
+ }
+}