Skip to content

Commit

Permalink
Better error message in splitter
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Dec 15, 2015
1 parent ad7333e commit 3009924
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dotty/tools/dotc/transform/Splitter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ class Splitter extends MiniPhaseTransform { thisTransform =>
if (!mbr.isOverloaded) mbr.asSingleDenotation
else tree.tpe match {
case tref: TermRefWithSignature => mbr.atSignature(tref.sig)
case _ => ctx.error(s"cannot disambiguate overloaded member $mbr"); NoDenotation
case _ =>
def alts = mbr.alternatives.map(alt => i"$alt: ${alt.info}").mkString(", ")
ctx.error(s"cannot disambiguate overloaded members $alts", tree.pos)
NoDenotation
}
}

Expand Down

0 comments on commit 3009924

Please sign in to comment.