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