summaryrefslogtreecommitdiff
path: root/test/files/run/t9946c.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t9946c.scala')
-rw-r--r--test/files/run/t9946c.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t9946c.scala b/test/files/run/t9946c.scala
new file mode 100644
index 0000000000..f9fe68d48f
--- /dev/null
+++ b/test/files/run/t9946c.scala
@@ -0,0 +1,10 @@
+class Test(private[this] val x: String) {
+ lazy val y = x.reverse
+}
+object Test {
+ def main(args: Array[String]): Unit = {
+ val t = new Test("foo")
+ assert(t.y == "oof", t.y)
+ }
+}
+