From bc7db60a2535a38300b8eabe99bc0b95d3d2efe4 Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Thu, 15 Jan 2009 15:20:57 +0000 Subject: Fix for #1589. --- test/files/run/lazy-locals.scala | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/files/run') 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 -- cgit v1.2.3