File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/cc Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -466,7 +466,7 @@ object Capabilities:
466466 */
467467 final def isLocalMutable (using Context ): Boolean = this match
468468 case tp @ TermRef (NoPrefix , _) =>
469- ccConfig.newScheme && ccConfig. strictMutability
469+ ccConfig.strictMutability
470470 && tp.symbol.isMutableVar
471471 && ! tp.symbol.hasAnnotation(defn.UntrackedCapturesAnnot )
472472 case _ => false
Original file line number Diff line number Diff line change @@ -675,7 +675,7 @@ extension (sym: Symbol)
675675 sym == defn.ArrayClass && ccConfig.strictMutability
676676
677677 def isDisallowedInCapset (using Context ): Boolean =
678- sym.isOneOf(if ccConfig.newScheme && ccConfig. strictMutability then Method else UnstableValueFlags )
678+ sym.isOneOf(if ccConfig.strictMutability then Method else UnstableValueFlags )
679679
680680 def varMirror (using Context ): Symbol =
681681 ccState.varMirrors.getOrElseUpdate(sym,
You can’t perform that action at this time.
0 commit comments