Skip to content

Commit 37848e9

Browse files
committed
Improve printing of overloaded denotations
1 parent d9b8c08 commit 37848e9

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
@@ -617,7 +617,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
617617
}
618618

619619
override def toText(denot: Denotation): Text = denot match {
620-
case denot: MultiDenotation => denot.toString
620+
case denot: MultiDenotation => Text(denot.alternatives.map(dclText), " <and> ")
621621
case NoDenotation => "NoDenotation"
622622
case _ =>
623623
if (denot.symbol.exists) toText(denot.symbol)

0 commit comments

Comments
 (0)