We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc522cc commit 4a45939Copy full SHA for 4a45939
compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -349,7 +349,10 @@ class PlainPrinter(_ctx: Context) extends Printer {
349
*/
350
protected def idString(sym: Symbol): String =
351
(if (showUniqueIds || Printer.debugPrintUnique) "#" + sym.id else "") +
352
- (if (showNestingLevel) "%" + sym.nestingLevel else "")
+ (if showNestingLevel then
353
+ if ctx.phase == Phases.checkCapturesPhase then "%" + sym.ccNestingLevel
354
+ else "%" + sym.nestingLevel
355
+ else "")
356
357
def nameString(sym: Symbol): String =
358
simpleNameString(sym) + idString(sym) // + "<" + (if (sym.exists) sym.owner else "") + ">"
0 commit comments