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 7d9a288 commit 5e09178Copy full SHA for 5e09178
compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -402,11 +402,11 @@ class PlainPrinter(_ctx: Context) extends Printer {
402
if tp.followAlias ne tp then toTextRef(tp.followAlias)
403
else
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) ~ ")"
+ (toTextRef(sym.termRef)
+ ~ Str(s"/${sym.ccNestingLevel}").provided(showNestingLevel)
+ ).provided(sym.exists)
+ "'cap[" ~ boundText(tp.lowerBound) ~ ".." ~ boundText(tp.upperBound) ~ "]"
+ ~ ("(from instantiating " ~ nameString(tp.source) ~ ")").provided(tp.source.exists)
410
}
411
412
0 commit comments