Skip to content

Commit 2ec12e6

Browse files
committed
Improve printing of overloaded denotations
1 parent 08b5324 commit 2ec12e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/printing/RefinedPrinter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
648648
}
649649

650650
override def toText(denot: Denotation): Text = denot match {
651-
case denot: MultiDenotation => denot.toString
651+
case denot: MultiDenotation => Text(denot.alternatives.map(dclText), " <and> ")
652652
case NoDenotation => "NoDenotation"
653653
case _ =>
654654
if (denot.symbol.exists) toText(denot.symbol)

0 commit comments

Comments
 (0)