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.
isPartialApplication
1 parent 00eee36 commit 88e2484Copy full SHA for 88e2484
lib/Sema/ConstraintSystem.cpp
@@ -2644,6 +2644,11 @@ bool ConstraintSystem::isPartialApplication(ConstraintLocator *locator) {
2644
locator->findFirst<LocatorPathElt::ImplicitConversion>())
2645
return false;
2646
2647
+ if (locator->directlyAt<OverloadedDeclRefExpr>()) {
2648
+ auto *ODRE = castToExpr<OverloadedDeclRefExpr>(locator->getAnchor());
2649
+ return ODRE->getFunctionRefKind() == FunctionRefKind::Unapplied;
2650
+ }
2651
+
2652
auto *UDE = getAsExpr<UnresolvedDotExpr>(locator->getAnchor());
2653
if (UDE == nullptr)
2654
0 commit comments