diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-11-02 00:14:26 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-11-02 00:14:26 +0000 |
commit | 3f26904e68a2693b57f5b08eac1847676ff748d2 (patch) | |
tree | af934de5b5e373440b041d9c5333cd46c8951e89 /test/files/buildmanager/t2792 | |
parent | ae4910485511c12cda0c110b6563610041070b5d (diff) | |
download | scala-3f26904e68a2693b57f5b08eac1847676ff748d2.tar.gz scala-3f26904e68a2693b57f5b08eac1847676ff748d2.tar.bz2 scala-3f26904e68a2693b57f5b08eac1847676ff748d2.zip |
Closes #2792. no review
Diffstat (limited to 'test/files/buildmanager/t2792')
-rw-r--r-- | test/files/buildmanager/t2792/A1.scala | 3 | ||||
-rw-r--r-- | test/files/buildmanager/t2792/A2.scala | 4 | ||||
-rw-r--r-- | test/files/buildmanager/t2792/A3.scala | 3 | ||||
-rw-r--r-- | test/files/buildmanager/t2792/t2792.changes/A1_1.scala | 3 | ||||
-rw-r--r-- | test/files/buildmanager/t2792/t2792.check | 11 | ||||
-rw-r--r-- | test/files/buildmanager/t2792/t2792.test | 3 |
6 files changed, 27 insertions, 0 deletions
diff --git a/test/files/buildmanager/t2792/A1.scala b/test/files/buildmanager/t2792/A1.scala new file mode 100644 index 0000000000..96dc0ef933 --- /dev/null +++ b/test/files/buildmanager/t2792/A1.scala @@ -0,0 +1,3 @@ +object A { + val x = new C +} diff --git a/test/files/buildmanager/t2792/A2.scala b/test/files/buildmanager/t2792/A2.scala new file mode 100644 index 0000000000..e55e681c76 --- /dev/null +++ b/test/files/buildmanager/t2792/A2.scala @@ -0,0 +1,4 @@ +object B { + import A.x.y + val z = y +} diff --git a/test/files/buildmanager/t2792/A3.scala b/test/files/buildmanager/t2792/A3.scala new file mode 100644 index 0000000000..cd083cdb34 --- /dev/null +++ b/test/files/buildmanager/t2792/A3.scala @@ -0,0 +1,3 @@ +class C { + val y = 4 +} diff --git a/test/files/buildmanager/t2792/t2792.changes/A1_1.scala b/test/files/buildmanager/t2792/t2792.changes/A1_1.scala new file mode 100644 index 0000000000..00ee05f273 --- /dev/null +++ b/test/files/buildmanager/t2792/t2792.changes/A1_1.scala @@ -0,0 +1,3 @@ +object A { + var x = new C +} diff --git a/test/files/buildmanager/t2792/t2792.check b/test/files/buildmanager/t2792/t2792.check new file mode 100644 index 0000000000..68e14c6386 --- /dev/null +++ b/test/files/buildmanager/t2792/t2792.check @@ -0,0 +1,11 @@ +builder > A1.scala A2.scala A3.scala +compiling Set(A1.scala, A2.scala, A3.scala) +Changes: Map() +builder > A1.scala +compiling Set(A1.scala) +Changes: Map(object A -> List(Added(Definition(A.x_$eq)), Changed(Definition(A.x))[value x changed to variable x])) +invalidate A2.scala because it references changed definition [Changed(Definition(A.x))[value x changed to variable x]] +compiling Set(A2.scala) +A2.scala:2: error: stable identifier required, but A.x found. + import A.x.y + ^ diff --git a/test/files/buildmanager/t2792/t2792.test b/test/files/buildmanager/t2792/t2792.test new file mode 100644 index 0000000000..f199950bba --- /dev/null +++ b/test/files/buildmanager/t2792/t2792.test @@ -0,0 +1,3 @@ +>>compile A1.scala A2.scala A3.scala +>>update A1.scala=>A1_1.scala +>>compile A1.scala |