From a5d47fb693d9b88ea9ed414762f16e027be64ada Mon Sep 17 00:00:00 2001 From: Hubert Plociniczak Date: Wed, 22 Sep 2010 14:00:35 +0000 Subject: Closes #1591. --- test/files/run/t1591.check | 1 + test/files/run/t1591.scala | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 test/files/run/t1591.check create mode 100644 test/files/run/t1591.scala (limited to 'test/files/run') diff --git a/test/files/run/t1591.check b/test/files/run/t1591.check new file mode 100644 index 0000000000..48082f72f0 --- /dev/null +++ b/test/files/run/t1591.check @@ -0,0 +1 @@ +12 diff --git a/test/files/run/t1591.scala b/test/files/run/t1591.scala new file mode 100644 index 0000000000..434064a5dd --- /dev/null +++ b/test/files/run/t1591.scala @@ -0,0 +1,14 @@ +abstract class A { + + lazy val lazyBar = bar + + object bar { + val foo = 12 + } + +} + +object Test extends Application { + val a = new A{} + println(a.lazyBar.foo) +} -- cgit v1.2.3