mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ConstraintSystem] Update key path subscript index type variable to use new locator element
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user