File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -1422,21 +1422,6 @@ SolutionCompareResult ConstraintSystem::compareSolutions(
1422
1422
continue ;
1423
1423
}
1424
1424
1425
- // With introduction of holes it's currently possible to form solutions
1426
- // with UnresolvedType bindings, we need to account for that in
1427
- // ranking. If one solution has a hole for a given type variable
1428
- // it's always worse than any non-hole type other solution might have.
1429
- if (type1->is <UnresolvedType>() || type2->is <UnresolvedType>()) {
1430
- if (type1->is <UnresolvedType>()) {
1431
- ++score2;
1432
- } else {
1433
- ++score1;
1434
- }
1435
-
1436
- identical = false ;
1437
- continue ;
1438
- }
1439
-
1440
1425
// If one type is a subtype of the other, but not vice-versa,
1441
1426
// we prefer the system with the more-constrained type.
1442
1427
// FIXME: Collapse this check into the second check.
Original file line number Diff line number Diff line change @@ -1134,8 +1134,7 @@ static void bindArchetypesFromContext(
1134
1134
if (parentDC->isTypeContext ()) {
1135
1135
if (parentDC != outerDC && parentDC->getSelfProtocolDecl ()) {
1136
1136
auto selfTy = parentDC->getSelfInterfaceType ();
1137
- auto contextTy = cs.getASTContext ().TheUnresolvedType ;
1138
- bindPrimaryArchetype (selfTy, contextTy);
1137
+ bindPrimaryArchetype (selfTy, ErrorType::get (cs.getASTContext ()));
1139
1138
}
1140
1139
continue ;
1141
1140
}
You can’t perform that action at this time.
0 commit comments