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 a2ec372 commit 31da834Copy full SHA for 31da834
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