Skip to content

Commit b7b492f

Browse files
committed
[CSClosure] Check parameters after solution is applied to the body of a closure
1 parent 50af68d commit b7b492f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Sema/CSClosure.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,6 +1429,8 @@ bool ConstraintSystem::applySolutionToBody(Solution &solution,
14291429
return true;
14301430

14311431
TypeChecker::checkClosureAttributes(closure);
1432+
TypeChecker::checkParameterList(closure->getParameters(), closure);
1433+
14321434
closure->setBodyState(ClosureExpr::BodyState::TypeCheckedWithSignature);
14331435
return false;
14341436
}

0 commit comments

Comments
 (0)