From afd1e7d29329523dd90cc95cbbacdabed15f28b3 Mon Sep 17 00:00:00 2001 From: Hubert Plociniczak Date: Tue, 12 Apr 2011 17:12:24 +0000 Subject: Closes #4432. review by dragos --- test/files/pos/t4432.scala | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 test/files/pos/t4432.scala (limited to 'test') 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 + } + +} -- cgit v1.2.3