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 8862b1b commit 9abda4aCopy full SHA for 9abda4a
lib/Sema/ConstraintSystem.cpp
@@ -622,12 +622,6 @@ ConstraintLocator *ConstraintSystem::getCalleeLocator(
622
if (isExpr<ObjectLiteralExpr>(anchor))
623
return getConstraintLocator(anchor, ConstraintLocator::ConstructorMember);
624
625
- if (locator->isLastElement<LocatorPathElt::FunctionArgument>()) {
626
- if (auto *CE = getAsExpr<CoerceExpr>(anchor)) {
627
- return getConstraintLocator(CE->getSubExpr());
628
- }
629
630
-
631
return getConstraintLocator(anchor);
632
}
633
0 commit comments