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 755321f + 181f26d commit eb13640Copy full SHA for eb13640
lib/Sema/CSRanking.cpp
@@ -1133,17 +1133,6 @@ SolutionCompareResult ConstraintSystem::compareSolutions(
1133
// The systems are not considered equivalent.
1134
identical = false;
1135
1136
- // If one type is convertible to of the other, but not vice-versa.
1137
- type1Better = tc.isConvertibleTo(type1, type2, cs.DC);
1138
- type2Better = tc.isConvertibleTo(type2, type1, cs.DC);
1139
- if (type1Better || type2Better) {
1140
- if (type1Better)
1141
- ++score1;
1142
- if (type2Better)
1143
- ++score2;
1144
- continue;
1145
- }
1146
-
1147
// A concrete type is better than an archetype.
1148
// FIXME: Total hack.
1149
if (type1->is<ArchetypeType>() != type2->is<ArchetypeType>()) {
0 commit comments