From de3e8492e61e02777520e8876e9e1bccb4b0f065 Mon Sep 17 00:00:00 2001 From: Hubert Plociniczak Date: Wed, 20 Oct 2010 13:26:02 +0000 Subject: Closes #2910. --- test/files/pos/t2910.scala | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 test/files/pos/t2910.scala (limited to 'test/files/pos') diff --git a/test/files/pos/t2910.scala b/test/files/pos/t2910.scala new file mode 100644 index 0000000000..d4d92fa765 --- /dev/null +++ b/test/files/pos/t2910.scala @@ -0,0 +1,33 @@ +object Test { + def test1 { + C + object C + } + + def test2 { + println(s.length) + lazy val s = "abc" + } + + def test3 { + lazy val lazyBar = bar + object bar { + val foo = 12 + } + lazy val lazyBar2 = bar + } + + def test4 { + lazy val x = { + x + lazy val x = 12 + 0 + } + } + + def test5 { + lazy val f: Int = g + Console.println("foo") + lazy val g: Int = f + } +} \ No newline at end of file -- cgit v1.2.3