[CSClosure] Check multi-statement closure attrs only in if inference is enabled

This commit is contained in:
Pavel Yaskevich
2021-10-08 12:12:44 -07:00
parent 18b23aa50f
commit 87f41a9b21
2 changed files with 6 additions and 3 deletions

View File

@@ -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;
}