File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
150
150
+ defn.FromJavaObjectSymbol
151
151
152
152
def toTextCaptureSet (cs : CaptureSet ): Text =
153
- if printDebug && ! cs.isConst then cs.toString
153
+ if printDebug && ctx.settings. YccDebug .value && ! cs.isConst then cs.toString
154
154
else if cs == CaptureSet .Fluid then " <fluid>"
155
155
else
156
156
val core : Text =
@@ -361,7 +361,8 @@ class PlainPrinter(_ctx: Context) extends Printer {
361
361
def toTextRef (tp : SingletonType ): Text = controlled {
362
362
tp match {
363
363
case tp : TermRef =>
364
- if tp.isLocalRootCapability then Str (s " <cap in ${tp.localRootOwner.name}/ ${tp.symbol.ccNestingLevel}> " )
364
+ if tp.symbol.name == nme.LOCAL_CAPTURE_ROOT then
365
+ Str (s " cap[ ${tp.localRootOwner.name}]@ ${tp.symbol.ccNestingLevel}" )
365
366
else toTextPrefixOf(tp) ~ selectionString(tp)
366
367
case tp : ThisType =>
367
368
nameString(tp.cls) + " .this"
You can’t perform that action at this time.
0 commit comments