diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-02-01 09:34:28 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-02-01 09:34:28 +0000 |
commit | bdf37de86a3eeeecafe84e22a91b8aa23866d075 (patch) | |
tree | d1137c1feb07ac2f2f6d692a497e494b5f27a2f8 /test/files/buildmanager | |
parent | fe9126e5a342599aa19a1a0325c9c238ecd52085 (diff) | |
download | scala-bdf37de86a3eeeecafe84e22a91b8aa23866d075.tar.gz scala-bdf37de86a3eeeecafe84e22a91b8aa23866d075.tar.bz2 scala-bdf37de86a3eeeecafe84e22a91b8aa23866d075.zip |
Check recursively the type aliases.
Diffstat (limited to 'test/files/buildmanager')
-rw-r--r-- | test/files/buildmanager/t2650_4/A.scala | 5 | ||||
-rw-r--r-- | test/files/buildmanager/t2650_4/B.scala | 3 | ||||
-rw-r--r-- | test/files/buildmanager/t2650_4/t2650_4.changes/A2.scala | 5 | ||||
-rw-r--r-- | test/files/buildmanager/t2650_4/t2650_4.check | 13 | ||||
-rw-r--r-- | test/files/buildmanager/t2650_4/t2650_4.test | 3 |
5 files changed, 29 insertions, 0 deletions
diff --git a/test/files/buildmanager/t2650_4/A.scala b/test/files/buildmanager/t2650_4/A.scala new file mode 100644 index 0000000000..b9a519eb48 --- /dev/null +++ b/test/files/buildmanager/t2650_4/A.scala @@ -0,0 +1,5 @@ +trait A { + type T = Int + type T2 = T + def x: T2 +} diff --git a/test/files/buildmanager/t2650_4/B.scala b/test/files/buildmanager/t2650_4/B.scala new file mode 100644 index 0000000000..46a8cf270a --- /dev/null +++ b/test/files/buildmanager/t2650_4/B.scala @@ -0,0 +1,3 @@ +object B { + def x(a: A): Int = a.x +} diff --git a/test/files/buildmanager/t2650_4/t2650_4.changes/A2.scala b/test/files/buildmanager/t2650_4/t2650_4.changes/A2.scala new file mode 100644 index 0000000000..0220e7b7bc --- /dev/null +++ b/test/files/buildmanager/t2650_4/t2650_4.changes/A2.scala @@ -0,0 +1,5 @@ +trait A { + type T = Long + type T2 = T + def x: T2 +} diff --git a/test/files/buildmanager/t2650_4/t2650_4.check b/test/files/buildmanager/t2650_4/t2650_4.check new file mode 100644 index 0000000000..ba092d013f --- /dev/null +++ b/test/files/buildmanager/t2650_4/t2650_4.check @@ -0,0 +1,13 @@ +builder > A.scala B.scala +compiling Set(A.scala, B.scala) +Changes: Map() +builder > A.scala +compiling Set(A.scala) +Changes: Map(trait A -> List(Changed(Definition(A.T))[type T changed from A.this.T to A.this.T flags: ])) +invalidate B.scala because it references changed definition [Changed(Definition(A.T))[type T changed from A.this.T to A.this.T flags: ]] +compiling Set(B.scala) +B.scala:2: error: type mismatch; + found : a.T2 + required: Int + def x(a: A): Int = a.x + ^ diff --git a/test/files/buildmanager/t2650_4/t2650_4.test b/test/files/buildmanager/t2650_4/t2650_4.test new file mode 100644 index 0000000000..6f3bd03361 --- /dev/null +++ b/test/files/buildmanager/t2650_4/t2650_4.test @@ -0,0 +1,3 @@ +>>compile A.scala B.scala +>>update A.scala=>A2.scala +>>compile A.scala |