File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
compiler/src/dotty/tools/dotc/cc Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,11 @@ object Capabilities:
168
168
169
169
/** Is this fresh cap at the right level to be able to subsume `ref`?
170
170
* Only outer freshes can be subsumed.
171
+ * TODO Can we merge this with levelOK? Right now we use two different schemes:
172
+ * - For level checking capsets with levelOK: Check that the visibility of the element
173
+ * os not properly contained in the captset owner.
174
+ * - For level checking elements subsumed by FreshCaps: Check that the widened scope
175
+ * (using levelOwner) of the elements contains the owner of the FreshCap.
171
176
*/
172
177
def acceptsLevelOf (ref : Capability )(using Context ): Boolean =
173
178
if ccConfig.useFreshLevels && ! CCState .collapseFresh then
You can’t perform that action at this time.
0 commit comments