summaryrefslogtreecommitdiff
path: root/test/files/pos/t2910.scala
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@epfl.ch>2010-10-20 13:26:02 +0000
committerHubert Plociniczak <hubert.plociniczak@epfl.ch>2010-10-20 13:26:02 +0000
commitde3e8492e61e02777520e8876e9e1bccb4b0f065 (patch)
treec125c022ff9c7e5249a3c31cfac1aa8997493a52 /test/files/pos/t2910.scala
parent7a4b4c7a97b0b9417a82bc03ecac31ffe16cf40c (diff)
downloadscala-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.scala33
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