Skip to content

Commit bb871df

Browse files
committed
use captureSetOfInfo
1 parent f889563 commit bb871df

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
@@ -926,7 +926,7 @@ class CheckCaptures extends Recheck, SymTransformer:
926926
todos match
927927
case Nil => acc
928928
case ref :: rem =>
929-
val cs = ref.binder.paramInfos(ref.paramNum).captureSet
929+
val cs = ref.captureSetOfInfo
930930
val nextAcc = cs.filter(isAllowed(_)) :: acc
931931
val nextRem: List[TermParamRef] = (cs.elems.toList.filter(!isAllowed(_)) ++ rem).asInstanceOf
932932
recur(nextRem, nextAcc)

0 commit comments

Comments
 (0)