diff options
author | Martin Odersky <odersky@gmail.com> | 2008-09-28 07:56:50 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2008-09-28 07:56:50 +0000 |
commit | 184383a519ab637530899ffd446a30c919e4a991 (patch) | |
tree | 9ca2646d5bb8404b17273ec2a55e1ed3ce87663a /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | |
parent | e20362771cc395d6894658de101881b7ae6295b4 (diff) | |
download | scala-184383a519ab637530899ffd446a30c919e4a991.tar.gz scala-184383a519ab637530899ffd446a30c919e4a991.tar.bz2 scala-184383a519ab637530899ffd446a30c919e4a991.zip |
Fixed #1263, and some cosmetic changes
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | 2 |
1 files changed, 2 insertions, 0 deletions
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) } } } |