From 34387c718492c26072b3cf402eb15494e5a552db Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 28 Sep 2011 23:08:28 +0000 Subject: Improved an error message. Closes SI-4319, no review. --- src/compiler/scala/tools/nsc/typechecker/Typers.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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)) } } } -- cgit v1.2.3