File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7211,7 +7211,7 @@ namespace {
7211
7211
// Coerce the pattern, in case we resolved something.
7212
7212
auto fnType = cs.getType (closure)->castTo <FunctionType>();
7213
7213
auto *params = closure->getParameters ();
7214
- cs. getTypeChecker (). coerceParameterListToType (params, closure, fnType);
7214
+ TypeChecker:: coerceParameterListToType (params, closure, fnType);
7215
7215
7216
7216
// If this closure had a function builder applied, rewrite it to a
7217
7217
// closure with a single expression body containing the builder
Original file line number Diff line number Diff line change @@ -1334,7 +1334,8 @@ class TypeChecker final {
1334
1334
1335
1335
// / Coerce the specified parameter list of a ClosureExpr to the specified
1336
1336
// / contextual type.
1337
- void coerceParameterListToType (ParameterList *P, ClosureExpr *CE, AnyFunctionType *FN);
1337
+ static void coerceParameterListToType (ParameterList *P, ClosureExpr *CE,
1338
+ AnyFunctionType *FN);
1338
1339
1339
1340
// / Type-check an initialized variable pattern declaration.
1340
1341
bool typeCheckBinding (Pattern *&P, Expr *&Init, DeclContext *DC);
You can’t perform that action at this time.
0 commit comments