Skip to content

Commit e0afeb9

Browse files
committed
cleanup
1 parent 297301c commit e0afeb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/cc/CheckCaptures.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ class CheckCaptures extends Recheck, SymTransformer:
603603
curEnv = Env(curEnv.owner, CaptureSet.Var(), isBoxed = false, if boxed then null else curEnv)
604604

605605
try
606-
val (eargs, eres) = trace(i"trying to dealias expected $expected", show = true) {expected.dealias} match
606+
val (eargs, eres) = expected.dealias match
607607
case defn.FunctionOf(eargs, eres, _, _) => (eargs, eres)
608608
case _ => (aargs.map(_ => WildcardType), WildcardType)
609609
val aargs1 = aargs.zipWithConserve(eargs){ (aarg, earg) => adapt(aarg, earg, !covariant) }

0 commit comments

Comments
 (0)