Skip to content

Commit 12b8999

Browse files
committed
Inline a variable
1 parent 9b96317 commit 12b8999

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
208208
else {
209209
val constr = ctx.typerState.constraint
210210
val bounds =
211-
if (constr.contains(tp)) {
212-
val ctx0 = ctx.addMode(Mode.Printing)
213-
ctx0.typeComparer.fullBounds(tp.origin)
214-
}
211+
if (constr.contains(tp)) ctx.addMode(Mode.Printing).typeComparer.fullBounds(tp.origin)
215212
else TypeBounds.empty
216213
if (bounds.isTypeAlias) toText(bounds.lo) ~ (Str("^") provided ctx.settings.YprintDebug.value)
217214
else if (ctx.settings.YshowVarBounds.value) "(" ~ toText(tp.origin) ~ "?" ~ toText(bounds) ~ ")"

0 commit comments

Comments
 (0)