@@ -376,7 +376,7 @@ class CheckCaptures extends Recheck, SymTransformer:
376
376
|| sym.isTerm && defn.isFunctionType(sym.info) && pt == AnySelectionProto
377
377
if sym.skipConstructor.isLevelOwner && canInstantiate then
378
378
val tpw = tp.widen
379
- var tp1 = mapRoots(sym.localRoot.termRef, CaptureRoot .Var (ctx.owner, sym))(tpw)
379
+ val tp1 = mapRoots(sym.localRoot.termRef, CaptureRoot .Var (ctx.owner, sym))(tpw)
380
380
.showing(i " INST $sym: $tp, ${sym.localRoot} = $result" , ccSetup)
381
381
if tpw eq tp1 then tp else tp1
382
382
else
@@ -760,8 +760,6 @@ class CheckCaptures extends Recheck, SymTransformer:
760
760
capt.println(i " fallBack from $actualWide to $actualInst to match $expected1" )
761
761
ok = (actualInst ne actualWide)
762
762
&& isCompatible(adaptBoxed(actualInst, expected1, tree.srcPos), expected1)
763
- // Useful for debugging:
764
- // if !ok then err.typeMismatch(tree.withType(actualInst), expected1, addenda ++ CaptureSet.levelErrors)
765
763
case _ =>
766
764
if ! ok then
767
765
capt.println(i " conforms failed for ${tree}: $actual vs $expected" )
@@ -1233,6 +1231,6 @@ class CheckCaptures extends Recheck, SymTransformer:
1233
1231
case tree : New =>
1234
1232
case tree : TypeTree => checkAppliedTypesIn(tree.withKnownType)
1235
1233
case _ => traverseChildren(t)
1236
- checkApplied.traverse(unit)( using ctx.withProperty( LooseRootChecking , Some (())))
1234
+ checkApplied.traverse(unit)
1237
1235
end CaptureChecker
1238
1236
end CheckCaptures
0 commit comments