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.
2 parents 6204d8d + 4a04960 commit d0a4978Copy full SHA for d0a4978
lib/Sema/CSDiagnostics.cpp
@@ -119,6 +119,10 @@ ValueDecl *RequirementFailure::getDeclRef() const {
119
ConstraintLocatorBuilder subscript(locator);
120
locator = cs.getConstraintLocator(
121
subscript.withPathElement(PathEltKind::SubscriptMember));
122
+ } else if (isa<MemberRefExpr>(anchor)) {
123
+ ConstraintLocatorBuilder memberRef(locator);
124
+ locator =
125
+ cs.getConstraintLocator(memberRef.withPathElement(PathEltKind::Member));
126
}
127
128
auto overload = getOverloadChoiceIfAvailable(locator);
0 commit comments