diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-10-20 13:26:02 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-10-20 13:26:02 +0000 |
commit | de3e8492e61e02777520e8876e9e1bccb4b0f065 (patch) | |
tree | c125c022ff9c7e5249a3c31cfac1aa8997493a52 /test/files/pos/t2910.scala | |
parent | 7a4b4c7a97b0b9417a82bc03ecac31ffe16cf40c (diff) | |
download | scala-de3e8492e61e02777520e8876e9e1bccb4b0f065.tar.gz scala-de3e8492e61e02777520e8876e9e1bccb4b0f065.tar.bz2 scala-de3e8492e61e02777520e8876e9e1bccb4b0f065.zip |
Closes #2910.
Diffstat (limited to 'test/files/pos/t2910.scala')
-rw-r--r-- | test/files/pos/t2910.scala | 33 |
1 files changed, 33 insertions, 0 deletions
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 |