summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2012-01-26 12:28:05 +0100
committerMartin Odersky <odersky@gmail.com>2012-01-26 12:28:05 +0100
commit09544b756a1274c7cc2bdd302fd9bd1d33a16b70 (patch)
treefcfa9eede9e5f42e9fa7558f3533155f3c91d6e6
parent0976bd8e1285b83af7cc036537bb7831eadc6a2a (diff)
downloadscala-09544b756a1274c7cc2bdd302fd9bd1d33a16b70.tar.gz
scala-09544b756a1274c7cc2bdd302fd9bd1d33a16b70.tar.bz2
scala-09544b756a1274c7cc2bdd302fd9bd1d33a16b70.zip
Dropping what looks like debug output from error message. Before the change,
writing `class C extends AnyVal` in the REPL produced a compiler crash due to a NPE.
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala b/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
index a762e44bda..177da9fcf9 100644
--- a/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
@@ -530,7 +530,7 @@ trait ContextErrors {
NormalTypeError(parent, "illegal inheritance from final "+mixin)
def ParentSealedInheritanceError(parent: Tree, psym: Symbol) =
- NormalTypeError(parent, "illegal inheritance from sealed " + psym + ": " + context.unit.source.file.canonicalPath + " != " + psym.sourceFile.canonicalPath)
+ NormalTypeError(parent, "illegal inheritance from sealed " + psym )
def ParentSelfTypeConformanceError(parent: Tree, selfType: Type) =
NormalTypeError(parent,