We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b39805 commit 9e4f23bCopy full SHA for 9e4f23b
lib/Sema/CSGen.cpp
@@ -3815,7 +3815,7 @@ namespace {
3815
CS.getConstraintLocator(E, ConstraintLocator::KeyPathValue);
3816
auto *value = CS.createTypeVariable(valueLocator, TVO_CanBindToNoEscape |
3817
TVO_CanBindToHole);
3818
- CS.addConstraint(ConstraintKind::Equal, base, value, locator);
+ CS.addConstraint(ConstraintKind::Equal, base, value, valueLocator);
3819
CS.recordKeyPath(E, root, value, CurDC);
3820
3821
// The result is a KeyPath from the root to the end component.
0 commit comments