@@ -191,10 +191,7 @@ sealed abstract class CaptureSet extends Showable:
191
191
existsElem(elems, _.subsumes(x))
192
192
|| ! x.isMaxCapability
193
193
&& ! x.derivesFrom(defn.Caps_CapSet )
194
- && x.captureSetOfInfo.subCaptures(this )(using ctx,
195
- vs match
196
- case vs : FrozenVarState => vs
197
- case _ => FrozenVarState ()).isOK
194
+ && x.captureSetOfInfo.subCaptures(this , Frozen .All ).isOK
198
195
199
196
comparer match
200
197
case comparer : ExplainingTypeComparer => comparer.traceIndented(debugInfo)(test)
@@ -1044,7 +1041,7 @@ object CaptureSet:
1044
1041
class VarState :
1045
1042
1046
1043
/** A map from captureset variables to their elements at the time of the snapshot. */
1047
- private val elemsMap : util.EqHashMap [Var , Refs ] = new util.EqHashMap
1044
+ protected val elemsMap : util.EqHashMap [Var , Refs ] = new util.EqHashMap
1048
1045
1049
1046
/** A map from captureset variables to their dependent sets at the time of the snapshot. */
1050
1047
private val depsMap : util.EqHashMap [Var , Deps ] = new util.EqHashMap
@@ -1102,6 +1099,7 @@ object CaptureSet:
1102
1099
class FrozenVarState extends VarState :
1103
1100
override def putElems (v : Var , refs : Refs ) = false
1104
1101
override def putDeps (v : Var , deps : Deps ) = false
1102
+ override def putHidden (v : HiddenSet , elems : Refs ): Boolean = { elemsMap(v) = elems; true }
1105
1103
1106
1104
@ sharable
1107
1105
/** A frozen state that allows a Fresh.Cap instancce to subsume a
0 commit comments