summaryrefslogtreecommitdiff
path: root/test/files/neg
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2009-08-15 20:12:37 +0000
committerMartin Odersky <odersky@gmail.com>2009-08-15 20:12:37 +0000
commitfe72ad6351aa3e06c894972e959fa768ed60a515 (patch)
treeec2de6807adba0e76dab26c1c803a389ebce7586 /test/files/neg
parent43b445579feb1499d3f405c64a45666037255f7d (diff)
downloadscala-fe72ad6351aa3e06c894972e959fa768ed60a515.tar.gz
scala-fe72ad6351aa3e06c894972e959fa768ed60a515.tar.bz2
scala-fe72ad6351aa3e06c894972e959fa768ed60a515.zip
Fixed #1560 (which was a typing hole, so some l...
Fixed #1560 (which was a typing hole, so some library classes had to be fixed)
Diffstat (limited to 'test/files/neg')
-rw-r--r--test/files/neg/bug987.check29
1 files changed, 16 insertions, 13 deletions
diff --git a/test/files/neg/bug987.check b/test/files/neg/bug987.check
index ec2ca621fd..4cad622ab8 100644
--- a/test/files/neg/bug987.check
+++ b/test/files/neg/bug987.check
@@ -1,16 +1,19 @@
-bug987.scala:15: error: the type intersection D with ScalaObject is malformed
- --- because ---
-no common type instance of base types B[C], and B[D] exists.
+bug987.scala:15: error: illegal inheritance;
+ class E inherits different type instances of trait B:
+B[D] and B[C]
class E extends D
- ^
-bug987.scala:20: error: the type intersection D with ScalaObject is malformed
- --- because ---
-no common type instance of base types B[C], and B[D] exists.
+ ^
+bug987.scala:20: error: illegal inheritance;
+ class F inherits different type instances of trait B:
+B[D] and B[C]
class F extends D
- ^
-bug987.scala:25: error: the type intersection C with B[D] with ScalaObject is malformed
- --- because ---
-no common type instance of base types B[D], and B[C] exists.
+ ^
+bug987.scala:25: error: illegal inheritance;
+ class D inherits different type instances of trait B:
+B[D] and B[C]
abstract class D extends C with B[D] {}
- ^
-three errors found
+ ^
+bug987.scala:25: error: type arguments [D] do not conform to trait B's type parameter bounds [T <: B[T]]
+abstract class D extends C with B[D] {}
+ ^
+four errors found