diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2011-04-12 17:12:24 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2011-04-12 17:12:24 +0000 |
commit | afd1e7d29329523dd90cc95cbbacdabed15f28b3 (patch) | |
tree | 401871dbbda307b74cc05f69b0dd1fda90f703a4 /test/files/pos | |
parent | f31a20a99ca13e43c423d5babfb549cf39b38835 (diff) | |
download | scala-afd1e7d29329523dd90cc95cbbacdabed15f28b3.tar.gz scala-afd1e7d29329523dd90cc95cbbacdabed15f28b3.tar.bz2 scala-afd1e7d29329523dd90cc95cbbacdabed15f28b3.zip |
Closes #4432. review by dragos
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t4432.scala | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/test/files/pos/t4432.scala b/test/files/pos/t4432.scala new file mode 100644 index 0000000000..106312311a --- /dev/null +++ b/test/files/pos/t4432.scala @@ -0,0 +1,42 @@ +object Main { + def foo1 = { + class A { + val x = { + lazy val cc = 1 // + cc + () + } + } + new A + } + + def foo2 = { + class B { + val x = { + object cc + cc + () + } + } + new B + } + + def foo3 = { + object C { + val x = { + lazy val cc = 1 + cc + } + } + C + } + + def foo4 = { + class D { + lazy val cc = 1 + cc + } + new D + } + +} |