summaryrefslogtreecommitdiff
path: root/sources/scala/tools/nsc/transform/Erasure.scala
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scala/tools/nsc/transform/Erasure.scala')
-rwxr-xr-xsources/scala/tools/nsc/transform/Erasure.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scala/tools/nsc/transform/Erasure.scala b/sources/scala/tools/nsc/transform/Erasure.scala
index e637f0bc26..b20aede4d3 100755
--- a/sources/scala/tools/nsc/transform/Erasure.scala
+++ b/sources/scala/tools/nsc/transform/Erasure.scala
@@ -363,7 +363,7 @@ abstract class Erasure extends AddInterfaces with typechecker.Analyzer {
sym1 + ":" + tpe1 +
(if (sym1.owner == root) "" else sym1.locationString) + " and\n" +
sym2 + ":" + tpe2 +
- (if (sym2.owner == root) " at line " + Position.line(sym2.pos) else sym2.locationString) +
+ (if (sym2.owner == root) " at line " + Position.line(unit.source, sym2.pos) else sym2.locationString) +
"\nhave same type" +
(if (tpe1 =:= tpe2) "" else " after erasure: " + atPhase(phase.next)(sym1.tpe)))
}