Skip to content

Commit 4576865

Browse files
committed
Better diagnostic for "failure to disambiguate" errors
1 parent 825f8de commit 4576865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Denotations.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ object Denotations {
553553
if (sd1.exists)
554554
if (sd2.exists)
555555
if (isDoubleDef(denot1.symbol, denot2.symbol)) doubleDefError(denot1, denot2)
556-
else throw new TypeError(s"failure to disambiguate overloaded reference $this")
556+
else throw new TypeError(i"failure to disambiguate overloaded reference at $this")
557557
else sd1
558558
else sd2
559559
}

0 commit comments

Comments
 (0)