Skip to content

Commit 310615e

Browse files
committed
Better printing of skolem types
1 parent 081b6ad commit 310615e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,15 @@ class PlainPrinter(_ctx: Context) extends Printer {
223223
case SuperType(thistpe: SingletonType, _) =>
224224
toTextRef(thistpe).map(_.replaceAll("""\bthis$""", "super"))
225225
case SuperType(thistpe, _) =>
226-
"Super(" ~ toTextLocal(thistpe) ~ ")"
226+
"Super(" ~ toTextGlobal(thistpe) ~ ")"
227227
case tp @ ConstantType(value) =>
228228
toText(value)
229229
case MethodParam(mt, idx) =>
230230
nameString(mt.paramNames(idx))
231231
case tp: RefinedThis =>
232232
s"${nameString(tp.binder.typeSymbol)}{...}.this"
233233
case tp: SkolemType =>
234-
"<skolem>" // !!! todo refine with unique identifier.
234+
"<unknown instance of type " ~ toTextGlobal(tp.info) ~ ">"
235235
}
236236
}
237237

0 commit comments

Comments
 (0)