summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-09-28 23:08:28 +0000
committerPaul Phillips <paulp@improving.org>2011-09-28 23:08:28 +0000
commit34387c718492c26072b3cf402eb15494e5a552db (patch)
tree91aff98b123c6dc5f82d97e7d12c61ad6516f395 /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parent898755056642cc3771d33260295f1f51cabc6513 (diff)
downloadscala-34387c718492c26072b3cf402eb15494e5a552db.tar.gz
scala-34387c718492c26072b3cf402eb15494e5a552db.tar.bz2
scala-34387c718492c26072b3cf402eb15494e5a552db.zip
Improved an error message.
Closes SI-4319, no review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 1c8b2486c9..5bd936bfb7 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -1121,9 +1121,9 @@ trait Typers extends Modes with Adaptations {
if (!phase.erasedTypes) {
for (ancestor <- clazz.ancestors find (_.isCase)) {
unit.error(clazz.pos, (
- "case class `%s' has case ancestor `%s'. Case-to-case inheritance is prohibited."+
- " To overcome this limitation use extractors to pattern match on non-leaf nodes."
- ).format(clazz, ancestor))
+ "case %s has case ancestor %s, but case-to-case inheritance is prohibited."+
+ " To overcome this limitation, use extractors to pattern match on non-leaf nodes."
+ ).format(clazz, ancestor.fullName))
}
}
}