summaryrefslogtreecommitdiff
path: root/test/files/pos/t4432.scala
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-04-12 17:12:24 +0000
committerHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-04-12 17:12:24 +0000
commitafd1e7d29329523dd90cc95cbbacdabed15f28b3 (patch)
tree401871dbbda307b74cc05f69b0dd1fda90f703a4 /test/files/pos/t4432.scala
parentf31a20a99ca13e43c423d5babfb549cf39b38835 (diff)
downloadscala-afd1e7d29329523dd90cc95cbbacdabed15f28b3.tar.gz
scala-afd1e7d29329523dd90cc95cbbacdabed15f28b3.tar.bz2
scala-afd1e7d29329523dd90cc95cbbacdabed15f28b3.zip
Closes #4432. review by dragos
Diffstat (limited to 'test/files/pos/t4432.scala')
-rw-r--r--test/files/pos/t4432.scala42
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
+ }
+
+}