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 5e0d42e + 6ba0ff8 commit 3c81a68Copy full SHA for 3c81a68
lib/Sema/CSApply.cpp
@@ -5703,7 +5703,7 @@ Expr *ExprRewriter::coerceCallArguments(
5703
SmallVector<LocatorPathElt, 4> path;
5704
auto anchor = locator.getLocatorParts(path);
5705
if (!path.empty() && path.back().is<LocatorPathElt::ApplyArgument>() &&
5706
- (isa<CallExpr>(anchor) || isa<SubscriptExpr>(anchor))) {
+ !isa<UnresolvedDotExpr>(anchor)) {
5707
auto locatorPtr = cs.getConstraintLocator(locator);
5708
assert(solution.trailingClosureMatchingChoices.count(locatorPtr) == 1);
5709
trailingClosureMatching = solution.trailingClosureMatchingChoices.find(
0 commit comments