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 78c2220 commit 041f9ceCopy full SHA for 041f9ce
compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala
@@ -640,7 +640,9 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
640
try changePrec(GlobalPrec)(toText(arg) ~ "^" ~ toTextCaptureSet(captureSet))
641
catch case ex: IllegalCaptureRef => toTextAnnot
642
if annot.symbol.maybeOwner == defn.RetainsAnnot
643
- && Feature.ccEnabled && Config.printCaptureSetsAsPrefix && !printDebug
+ && Feature.ccEnabled
644
+ && Config.printCaptureSetsAsPrefix && !printDebug
645
+ && Phases.checkCapturesPhase.exists // might be missing on -Ytest-pickler
646
then toTextRetainsAnnot
647
else toTextAnnot
648
case EmptyTree =>
tests/pos-custom-args/captures/i18699.scala
0 commit comments