diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2009-01-15 15:20:57 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2009-01-15 15:20:57 +0000 |
commit | bc7db60a2535a38300b8eabe99bc0b95d3d2efe4 (patch) | |
tree | c954a76989c22d8d96b6ac298157cbf218c8c4e1 /test/files | |
parent | e877601ffbf61d79c8241bcce948cdde99efb0f1 (diff) | |
download | scala-bc7db60a2535a38300b8eabe99bc0b95d3d2efe4.tar.gz scala-bc7db60a2535a38300b8eabe99bc0b95d3d2efe4.tar.bz2 scala-bc7db60a2535a38300b8eabe99bc0b95d3d2efe4.zip |
Fix for #1589.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/lazy-locals.scala | 8 |
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 |