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 b43eab4 + d675c74 commit 6a753acCopy full SHA for 6a753ac
lib/Sema/CSApply.cpp
@@ -5813,9 +5813,11 @@ Expr *ExprRewriter::coerceCallArguments(
5813
// - new types are propagated to constraint system
5814
auto *closureType = param.getPlainType()->castTo<FunctionType>();
5815
5816
+ auto argLoc = getArgLocator(argIdx, paramIdx, param.getParameterFlags());
5817
+
5818
arg = coerceToType(
5819
arg, closureType->getResult(),
- locator.withPathElement(ConstraintLocator::AutoclosureResult));
5820
+ argLoc.withPathElement(ConstraintLocator::AutoclosureResult));
5821
5822
if (shouldInjectWrappedValuePlaceholder) {
5823
// If init(wrappedValue:) takes an autoclosure, then we want
0 commit comments