Skip to content

Commit 426a2f8

Browse files
[ConstraintSystem] Checking for SK_Fix when diagnose ambiguity for generic parameter bindings with no fixes
1 parent 4c8f1c8 commit 426a2f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Sema/ConstraintSystem.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2764,7 +2764,8 @@ static bool diagnoseConflictingGenericArguments(ConstraintSystem &cs,
27642764
return false;
27652765

27662766
bool noFixes = llvm::all_of(solutions, [](const Solution &solution) -> bool {
2767-
return solution.Fixes.empty();
2767+
const auto score = solution.getFixedScore();
2768+
return score.Data[SK_Fix] == 0 && solution.Fixes.empty();
27682769
});
27692770

27702771
bool allMismatches =

0 commit comments

Comments
 (0)