File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -1253,29 +1253,6 @@ namespace {
1253
1253
CS.setFavoredType (E, knownType.getPointer ());
1254
1254
}
1255
1255
}
1256
-
1257
- // This can only happen when failure diagnostics is trying
1258
- // to type-check expressions inside of a single-statement
1259
- // closure which refer to anonymous parameters, in this case
1260
- // let's either use type as written or allocate a fresh type
1261
- // variable, just like we do for closure type.
1262
- // FIXME: We should eliminate this case.
1263
- if (auto *PD = dyn_cast<ParamDecl>(VD)) {
1264
- if (!CS.hasType (PD)) {
1265
- if (knownType &&
1266
- (knownType->hasUnboundGenericType () ||
1267
- knownType->hasPlaceholder ())) {
1268
- knownType = CS.replaceInferableTypesWithTypeVars (knownType,
1269
- locator);
1270
- }
1271
-
1272
- CS.setType (
1273
- PD, knownType ? knownType
1274
- : CS.createTypeVariable (locator,
1275
- TVO_CanBindToLValue |
1276
- TVO_CanBindToNoEscape));
1277
- }
1278
- }
1279
1256
}
1280
1257
1281
1258
// If declaration is invalid, let's turn it into a potential hole
You can’t perform that action at this time.
0 commit comments