Skip to content

Commit 6e811b4

Browse files
committed
Print info of SkolemTypes under -Xprint-types
1 parent 09b8754 commit 6e811b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,9 @@ class PlainPrinter(_ctx: Context) extends Printer {
290290
if (idx >= 0) selfRecName(idx + 1)
291291
else "{...}.this" // TODO move underlying type to an addendum, e.g. ... z3 ... where z3: ...
292292
case tp: SkolemType =>
293-
if (homogenizedView) toText(tp.info) else toText(tp.repr)
293+
if (homogenizedView) toText(tp.info)
294+
else if (ctx.settings.XprintTypes.value) "<" ~ toText(tp.repr) ~ ":" ~ toText(tp.info) ~ ">"
295+
else toText(tp.repr)
294296
}
295297
}
296298

0 commit comments

Comments
 (0)