diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-09-22 14:00:35 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-09-22 14:00:35 +0000 |
commit | a5d47fb693d9b88ea9ed414762f16e027be64ada (patch) | |
tree | c6c5962343a7c7a4e1c7d98dcc6b2ad930c91344 /test/files/run/t1591.scala | |
parent | 39a8b1042e04a5b838ac5688e014c29680bf0561 (diff) | |
download | scala-a5d47fb693d9b88ea9ed414762f16e027be64ada.tar.gz scala-a5d47fb693d9b88ea9ed414762f16e027be64ada.tar.bz2 scala-a5d47fb693d9b88ea9ed414762f16e027be64ada.zip |
Closes #1591.
Diffstat (limited to 'test/files/run/t1591.scala')
-rw-r--r-- | test/files/run/t1591.scala | 14 |
1 files changed, 14 insertions, 0 deletions
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) +} |