summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/files/run/lazy-locals.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/lazy-locals.scala b/test/files/run/lazy-locals.scala
index 000f4d2faf..5279901795 100644
--- a/test/files/run/lazy-locals.scala
+++ b/test/files/run/lazy-locals.scala
@@ -153,6 +153,14 @@ object Test extends Application {
}
}
+ // ticket #1589, should not crash
+ class Test {
+ val x = {
+ lazy val t = "abc";
+ t
+ }
+ }
+
println(testLazy)
testLazy32
testLazy33