We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b444167 + d6d798a commit 0635caeCopy full SHA for 0635cae
src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -142,8 +142,11 @@ class PlainPrinter(_ctx: Context) extends Printer {
142
case AnnotatedType(annot, tpe) =>
143
toTextLocal(tpe) ~ " " ~ toText(annot)
144
case tp: TypeVar =>
145
- val suffix = if (tp.isInstantiated) "'" else "?"
146
- toTextLocal(tp.instanceOpt orElse tp.origin) ~ suffix // debug for now, so that we can see where the TypeVars are.
+ if (tp.isInstantiated)
+ toTextLocal(tp.instanceOpt) ~ "'" // debug for now, so that we can see where the TypeVars are.
147
+ else
148
+ "(" ~ toText(tp.origin) ~ "?" ~
149
+ toText(ctx.typerState.constraint.bounds(tp.origin)) ~ ")"
150
case _ =>
151
tp.fallbackToText(this)
152
}
0 commit comments