From 184383a519ab637530899ffd446a30c919e4a991 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 28 Sep 2008 07:56:50 +0000 Subject: Fixed #1263, and some cosmetic changes --- src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala') diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala index 860e83666e..7172a0a2d0 100644 --- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala +++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala @@ -372,6 +372,8 @@ abstract class RefChecks extends InfoTransform { unit.error(clazz.pos, "illegal inheritance;\n " + clazz + " inherits different type instances of " + baseClass + ":\n" + tp1 + " and " + tp2); + explainTypes(tp1, tp2) + explainTypes(tp2, tp1) } } } -- cgit v1.2.3