diff options
Diffstat (limited to 'test/files/run/lazy-locals.scala')
-rw-r--r-- | test/files/run/lazy-locals.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/files/run/lazy-locals.scala b/test/files/run/lazy-locals.scala index ba555daf95..696aeeba96 100644 --- a/test/files/run/lazy-locals.scala +++ b/test/files/run/lazy-locals.scala @@ -163,18 +163,18 @@ object Test extends App { // see #1589 object NestedLazyVals { - lazy val x = { + lazy val x = { lazy val y = { println("forcing y"); 42; } println("forcing x") - y + y } - + val x1 = 5 + { lazy val y = 10 ; y } - + println(x) println(x1) } - + trait TNestedLazyVals { lazy val x = { lazy val y = 42; y } } |