diff options
author | Martin Odersky <odersky@gmail.com> | 2012-01-26 12:28:05 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2012-01-26 12:28:05 +0100 |
commit | 09544b756a1274c7cc2bdd302fd9bd1d33a16b70 (patch) | |
tree | fcfa9eede9e5f42e9fa7558f3533155f3c91d6e6 /src | |
parent | 0976bd8e1285b83af7cc036537bb7831eadc6a2a (diff) | |
download | scala-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala | 2 |
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, |