summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-11-01 00:58:36 +0000
committerHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-11-01 00:58:36 +0000
commit684d1901d90e0312fb238901bf59c24dcbdf3854 (patch)
tree6b244158ddda23b9d1c17e8917c77a393f87e2b4 /src/compiler
parent1754813beb02cea6733ecdbcfd34d2f0341fb945 (diff)
downloadscala-684d1901d90e0312fb238901bf59c24dcbdf3854.tar.gz
scala-684d1901d90e0312fb238901bf59c24dcbdf3854.tar.bz2
scala-684d1901d90e0312fb238901bf59c24dcbdf3854.zip
Fixed paths for 'neg' tests.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 89eb6f2e91..976fcc8f7c 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -1277,7 +1277,7 @@ trait Typers extends Modes with Adaptations with PatMatVirtualiser {
if (context.unit.source.file == psym.sourceFile || isValueClass(context.owner))
psym addChild context.owner
else
- error(parent.pos, "illegal inheritance from sealed "+psym+": " + context.unit.source.file + " != " + psym.sourceFile)
+ error(parent.pos, "illegal inheritance from sealed "+psym+": " + context.unit.source.file.canonicalPath + " != " + psym.sourceFile.canonicalPath)
}
if (!(selfType <:< parent.tpe.typeOfThis) &&
!phase.erasedTypes &&