mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ConstraintSystem] Add requirement kind to conditional conformance requirement locator
This commit is contained in:
@@ -2691,10 +2691,10 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyConformsToConstraint(
|
||||
if (conformance.isConcrete()) {
|
||||
unsigned index = 0;
|
||||
for (const auto &req : conformance.getConditionalRequirements()) {
|
||||
addConstraint(
|
||||
req,
|
||||
locator.withPathElement(
|
||||
LocatorPathElt::getConditionalRequirementComponent(index++)));
|
||||
addConstraint(req,
|
||||
locator.withPathElement(
|
||||
LocatorPathElt::getConditionalRequirementComponent(
|
||||
index++, req.getKind())));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user