File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -402,11 +402,11 @@ class PlainPrinter(_ctx: Context) extends Printer {
402
402
if tp.followAlias ne tp then toTextRef(tp.followAlias)
403
403
else
404
404
def boundText (sym : Symbol ): Text =
405
- if sym.exists then toTextRef(sym.termRef) ~ s " / ${sym.ccNestingLevel} "
406
- else " "
407
- " 'cap[ " ~ nameString(tp.source )
408
- ~ " ]( " ~ boundText(tp.lowerBound)
409
- ~ " .. " ~ boundText (tp.upperBound ) ~ " )"
405
+ ( toTextRef(sym.termRef)
406
+ ~ Str ( s " / ${sym.ccNestingLevel} " ).provided(showNestingLevel)
407
+ ).provided(sym.exists )
408
+ " 'cap[ " ~ boundText(tp.lowerBound) ~ " .. " ~ boundText(tp.upperBound) ~ " ] "
409
+ ~ ( " (from instantiating " ~ nameString (tp.source ) ~ " )" ).provided(tp.source.exists)
410
410
}
411
411
}
412
412
You can’t perform that action at this time.
0 commit comments