[ConstraintSystem] Update key path subscript index type variable to use new locator element

This commit is contained in:
Pavel Yaskevich
2023-11-17 15:47:44 -08:00
parent d542ab99f0
commit f440dd8e37
3 changed files with 10 additions and 1 deletions

View File

@@ -3687,7 +3687,7 @@ void ConstraintSystem::resolveOverload(ConstraintLocator *locator,
// The element type is T or @lvalue T based on the key path subtype and
// the mutability of the base.
auto keyPathIndexTy = createTypeVariable(
getConstraintLocator(locator, ConstraintLocator::FunctionArgument),
getConstraintLocator(locator, ConstraintLocator::KeyPathSubscriptIndex),
TVO_CanBindToInOut);
auto elementTy = createTypeVariable(
getConstraintLocator(locator, ConstraintLocator::FunctionArgument),