mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #61944 from angela-laar/refactor-generate-constraints-for-closures
[CSClosure] Refactor generateConstraints
This commit is contained in:
@@ -10798,7 +10798,7 @@ bool ConstraintSystem::resolveClosure(TypeVariableType *typeVar,
|
||||
setSolutionApplicationTarget(closure, target);
|
||||
|
||||
// Generate constraints from the body of this closure.
|
||||
return !generateConstraints(closure);
|
||||
return !generateConstraints(AnyFunctionRef{closure}, closure->getBody());
|
||||
}
|
||||
|
||||
ConstraintSystem::SolutionKind
|
||||
@@ -14545,7 +14545,7 @@ ConstraintSystem::simplifyConstraint(const Constraint &constraint) {
|
||||
|
||||
case ConstraintKind::Disjunction:
|
||||
case ConstraintKind::Conjunction:
|
||||
// {Dis, Con}junction constraints are never solved here.
|
||||
// See {Dis, Con}junctionStep class in CSStep.cpp for solving
|
||||
return SolutionKind::Unsolved;
|
||||
|
||||
case ConstraintKind::OneWayEqual:
|
||||
|
||||
Reference in New Issue
Block a user