File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
compiler/src/dotty/tools/dotc/cc Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -388,7 +388,7 @@ object CaptureSet:
388
388
389
389
def apply (elems : CaptureRef * )(using Context ): CaptureSet .Const =
390
390
if elems.isEmpty then empty
391
- else Const (SimpleIdentitySet (elems.map(_.normalizedRef)* ))
391
+ else Const (SimpleIdentitySet (elems.map(_.normalizedRef.ensuring(_.isTrackableRef) )* ))
392
392
393
393
def apply (elems : Refs )(using Context ): CaptureSet .Const =
394
394
if elems.isEmpty then empty else Const (elems)
@@ -496,6 +496,7 @@ object CaptureSet:
496
496
CompareResult .LevelError (this , elem)
497
497
else
498
498
// if id == 34 then assert(!elem.isUniversalRootCapability)
499
+ assert(elem.isTrackableRef, elem)
499
500
elems += elem
500
501
if elem.isRootCapability then
501
502
rootAddedHandler()
You can’t perform that action at this time.
0 commit comments