diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-10-20 13:26:07 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-10-20 13:26:07 +0000 |
commit | add9be644fd7b2864e4dcdd792980622622c934a (patch) | |
tree | 6db3295dcbbcc453ac9f57ae8993ff0e3a68c4b9 /test/files/run/t3670.scala | |
parent | de3e8492e61e02777520e8876e9e1bccb4b0f065 (diff) | |
download | scala-add9be644fd7b2864e4dcdd792980622622c934a.tar.gz scala-add9be644fd7b2864e4dcdd792980622622c934a.tar.bz2 scala-add9be644fd7b2864e4dcdd792980622622c934a.zip |
Closes #3670, #3877.
Diffstat (limited to 'test/files/run/t3670.scala')
-rw-r--r-- | test/files/run/t3670.scala | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/files/run/t3670.scala b/test/files/run/t3670.scala new file mode 100644 index 0000000000..a37c3a242c --- /dev/null +++ b/test/files/run/t3670.scala @@ -0,0 +1,31 @@ +class C { + val things = List("abcs") + + if (things.length < 30) { + lazy val a = "a" + println(a) + } + if (things.length < 30) { + lazy val b = "b" + println(b) + } +} + +class M extends Application { + def foo { + lazy val a = { + lazy val b = 1 + lazy val c = 2 + println(b) + println(c) + } + a + lazy val d = 42 + println(d) + } +} + +object Test extends Application { + new C() + new M().foo +}
\ No newline at end of file |