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.
Feature.ccEnabledSomewhere
needsCaptureChecking
1 parent c00a486 commit 99abbddCopy full SHA for 99abbdd
compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -242,7 +242,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
242
val refsText = if showAsCap then rootSetText else toTextCaptureSet(refs)
243
toTextCapturing(parent, refsText, boxText)
244
case tp @ RetainingType(parent, refs) =>
245
- if ctx.compilationUnit.needsCaptureChecking then
+ if Feature.ccEnabledSomewhere then
246
val refsText = refs match
247
case ref :: Nil if ref.symbol == defn.captureRoot => rootSetText
248
case _ => toTextRetainedElems(refs)
0 commit comments