mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CSDiagnostics] Differentiate between key path type and value issues
Make sure that contextual mismatch uses a correct locator when the issue is with key path value type instead of the key path type.
This commit is contained in:
@@ -6693,7 +6693,8 @@ bool ConstraintSystem::repairFailures(
|
||||
}
|
||||
|
||||
conversionsOrFixes.push_back(IgnoreContextualType::create(
|
||||
*this, lhs, rhs, keyPathLoc));
|
||||
*this, lhs, rhs,
|
||||
getConstraintLocator(keyPathLoc, ConstraintLocator::KeyPathValue)));
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user