mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CSClosure] Check multi-statement closure attrs only in if inference is enabled
This commit is contained in:
@@ -1445,9 +1445,6 @@ bool ConstraintSystem::applySolutionToBody(Solution &solution,
|
||||
if (application.hadError)
|
||||
return true;
|
||||
|
||||
TypeChecker::checkClosureAttributes(closure);
|
||||
TypeChecker::checkParameterList(closure->getParameters(), closure);
|
||||
|
||||
closure->setBodyState(ClosureExpr::BodyState::TypeCheckedWithSignature);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user