@@ -12039,8 +12039,7 @@ bool ConstraintSystem::resolveClosure(TypeVariableType *typeVar,
12039
12039
if (!shouldAttemptFixes())
12040
12040
return false;
12041
12041
12042
- assignFixedType(typeVar, PlaceholderType::get(getASTContext(), typeVar),
12043
- closureLocator);
12042
+ assignFixedType(typeVar, PlaceholderType::get(getASTContext(), typeVar));
12044
12043
recordTypeVariablesAsHoles(inferredClosureType);
12045
12044
12046
12045
return !recordFix(
@@ -12208,7 +12207,7 @@ bool ConstraintSystem::resolveClosure(TypeVariableType *typeVar,
12208
12207
auto closureType =
12209
12208
FunctionType::get(parameters, inferredClosureType->getResult(),
12210
12209
closureExtInfo);
12211
- assignFixedType(typeVar, closureType, closureLocator );
12210
+ assignFixedType(typeVar, closureType);
12212
12211
12213
12212
// If there is a result builder to apply, do so now.
12214
12213
if (resultBuilderType) {
@@ -12236,7 +12235,7 @@ bool ConstraintSystem::resolvePackExpansion(TypeVariableType *typeVar,
12236
12235
locator->castLastElementTo<LocatorPathElt::PackExpansionType>()
12237
12236
.getOpenedType();
12238
12237
12239
- assignFixedType(typeVar, openedExpansionType, locator );
12238
+ assignFixedType(typeVar, openedExpansionType);
12240
12239
return true;
12241
12240
}
12242
12241
@@ -12247,7 +12246,7 @@ bool ConstraintSystem::resolveTapBody(TypeVariableType *typeVar,
12247
12246
auto *tapExpr = castToExpr<TapExpr>(tapLoc->getAnchor());
12248
12247
12249
12248
// Assign a type to tap expression itself.
12250
- assignFixedType(typeVar, contextualType, getConstraintLocator(locator) );
12249
+ assignFixedType(typeVar, contextualType);
12251
12250
// Set type to `$interpolation` variable declared in the body of tap
12252
12251
// expression.
12253
12252
setType(tapExpr->getVar(), contextualType);
0 commit comments