We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad7333e commit 3009924Copy full SHA for 3009924
src/dotty/tools/dotc/transform/Splitter.scala
@@ -47,7 +47,10 @@ class Splitter extends MiniPhaseTransform { thisTransform =>
47
if (!mbr.isOverloaded) mbr.asSingleDenotation
48
else tree.tpe match {
49
case tref: TermRefWithSignature => mbr.atSignature(tref.sig)
50
- case _ => ctx.error(s"cannot disambiguate overloaded member $mbr"); NoDenotation
+ case _ =>
51
+ def alts = mbr.alternatives.map(alt => i"$alt: ${alt.info}").mkString(", ")
52
+ ctx.error(s"cannot disambiguate overloaded members $alts", tree.pos)
53
+ NoDenotation
54
}
55
56
0 commit comments