[CS] Fix a locator path element

This locator is for Dictionary's Value generic
parameter.
This commit is contained in:
Hamish Knight
2020-03-27 15:07:13 -07:00
parent 234270c941
commit 31e46b3a23

View File

@@ -7297,7 +7297,7 @@ ConstraintSystem::simplifyBridgingConstraint(Type type1,
addExplicitConversionConstraint(fromKeyValue->second, toKeyValue->second,
ForgetChoice,
locator.withPathElement(
LocatorPathElt::GenericArgument(0)));
LocatorPathElt::GenericArgument(1)));
countOptionalInjections();
return SolutionKind::Solved;
}