summaryrefslogtreecommitdiff
path: root/test/files/run/lazy-locals.scala
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2009-01-15 15:20:57 +0000
committerIulian Dragos <jaguarul@gmail.com>2009-01-15 15:20:57 +0000
commitbc7db60a2535a38300b8eabe99bc0b95d3d2efe4 (patch)
treec954a76989c22d8d96b6ac298157cbf218c8c4e1 /test/files/run/lazy-locals.scala
parente877601ffbf61d79c8241bcce948cdde99efb0f1 (diff)
downloadscala-bc7db60a2535a38300b8eabe99bc0b95d3d2efe4.tar.gz
scala-bc7db60a2535a38300b8eabe99bc0b95d3d2efe4.tar.bz2
scala-bc7db60a2535a38300b8eabe99bc0b95d3d2efe4.zip
Fix for #1589.
Diffstat (limited to 'test/files/run/lazy-locals.scala')
-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