diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-01-26 10:03:04 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-01-26 10:03:04 +0000 |
commit | 70cc762d3a29bc91349cd84b3e22bf46d189d817 (patch) | |
tree | e8c54426601087baa824308e4867f7b6f67a6c49 /test/files/buildmanager/t2653 | |
parent | c3d125891f7707cd8b47786bfd063760508b009a (diff) | |
download | scala-70cc762d3a29bc91349cd84b3e22bf46d189d817.tar.gz scala-70cc762d3a29bc91349cd84b3e22bf46d189d817.tar.bz2 scala-70cc762d3a29bc91349cd84b3e22bf46d189d817.zip |
Changed the info statements in refined build ma...
Changed the info statements in refined build manager to print the
information in more consistent way, so that we can test it using
partest. Added more tests for build manager, more to follow... No
review.
Diffstat (limited to 'test/files/buildmanager/t2653')
-rw-r--r-- | test/files/buildmanager/t2653/A.scala | 2 | ||||
-rw-r--r-- | test/files/buildmanager/t2653/B.scala | 3 | ||||
-rw-r--r-- | test/files/buildmanager/t2653/t2653.changes/A2.scala | 3 | ||||
-rw-r--r-- | test/files/buildmanager/t2653/t2653.check | 13 | ||||
-rw-r--r-- | test/files/buildmanager/t2653/t2653.test | 3 |
5 files changed, 24 insertions, 0 deletions
diff --git a/test/files/buildmanager/t2653/A.scala b/test/files/buildmanager/t2653/A.scala new file mode 100644 index 0000000000..fb17a158c7 --- /dev/null +++ b/test/files/buildmanager/t2653/A.scala @@ -0,0 +1,2 @@ +class A[+T] + diff --git a/test/files/buildmanager/t2653/B.scala b/test/files/buildmanager/t2653/B.scala new file mode 100644 index 0000000000..8f55a88e05 --- /dev/null +++ b/test/files/buildmanager/t2653/B.scala @@ -0,0 +1,3 @@ +object B { + val a: A[Any] = new A[Int] +} diff --git a/test/files/buildmanager/t2653/t2653.changes/A2.scala b/test/files/buildmanager/t2653/t2653.changes/A2.scala new file mode 100644 index 0000000000..ffc1b97ebb --- /dev/null +++ b/test/files/buildmanager/t2653/t2653.changes/A2.scala @@ -0,0 +1,3 @@ +class A[T] + + diff --git a/test/files/buildmanager/t2653/t2653.check b/test/files/buildmanager/t2653/t2653.check new file mode 100644 index 0000000000..0d40601962 --- /dev/null +++ b/test/files/buildmanager/t2653/t2653.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(class A -> List(Changed(Class(A))[ tparams: List((type T,type T))], Changed(Definition(A.<init>))[constructor A changed from ()A[T] to ()A[T] flags: <method>])) +invalidate B.scala because it references changed class [Changed(Class(A))[ tparams: List((type T,type T))]] +compiling Set(B.scala) +B.scala:2: error: type mismatch; + found : A[Int] + required: A[Any] + val a: A[Any] = new A[Int] + ^ diff --git a/test/files/buildmanager/t2653/t2653.test b/test/files/buildmanager/t2653/t2653.test new file mode 100644 index 0000000000..6f3bd03361 --- /dev/null +++ b/test/files/buildmanager/t2653/t2653.test @@ -0,0 +1,3 @@ +>>compile A.scala B.scala +>>update A.scala=>A2.scala +>>compile A.scala |