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.
1 parent 9b96317 commit 12b8999Copy full SHA for 12b8999
compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -208,10 +208,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
208
else {
209
val constr = ctx.typerState.constraint
210
val bounds =
211
- if (constr.contains(tp)) {
212
- val ctx0 = ctx.addMode(Mode.Printing)
213
- ctx0.typeComparer.fullBounds(tp.origin)
214
- }
+ if (constr.contains(tp)) ctx.addMode(Mode.Printing).typeComparer.fullBounds(tp.origin)
215
else TypeBounds.empty
216
if (bounds.isTypeAlias) toText(bounds.lo) ~ (Str("^") provided ctx.settings.YprintDebug.value)
217
else if (ctx.settings.YshowVarBounds.value) "(" ~ toText(tp.origin) ~ "?" ~ toText(bounds) ~ ")"
0 commit comments