Skip to content

Commit 53496b8

Browse files
committed
Show LazyRefs nicely
Previously, this fell back to toString
1 parent 24a95aa commit 53496b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ class PlainPrinter(_ctx: Context) extends Printer {
170170
else TypeBounds.empty
171171
"(" ~ toText(tp.origin) ~ "?" ~ toText(bounds) ~ ")"
172172
}
173+
case tp: LazyRef =>
174+
"LazyRef(" ~ toTextGlobal(tp.ref) ~ ")"
173175
case _ =>
174176
tp.fallbackToText(this)
175177
}

0 commit comments

Comments
 (0)