mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CSClosure] Generate constraints for empty closure body
We should do this in the ConstraintGenerator instead of in a ConstraintSystem method.
This commit is contained in:
@@ -10797,8 +10797,7 @@ bool ConstraintSystem::resolveClosure(TypeVariableType *typeVar,
|
||||
setSolutionApplicationTarget(closure, target);
|
||||
|
||||
// Generate constraints from the body of this closure.
|
||||
return !generateConstraints(
|
||||
AnyFunctionRef(cast<AbstractClosureExpr>(closure)), closure->getBody());
|
||||
return !generateConstraints(AnyFunctionRef{closure}, closure->getBody());
|
||||
}
|
||||
|
||||
ConstraintSystem::SolutionKind
|
||||
|
||||
Reference in New Issue
Block a user