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.
1 parent 1312fc7 commit a908386Copy full SHA for a908386
lib/Sema/CSStep.cpp
@@ -924,6 +924,7 @@ StepResult ConjunctionStep::resume(bool prevFailed) {
924
925
// Rewind back the constraint system information.
926
ActiveChoice.reset();
927
+ restoreBestScore();
928
929
if (CS.isDebugMode())
930
getDebugLogger() << ")\n";
lib/Sema/CSStep.h
@@ -530,6 +530,9 @@ template <typename P> class BindingStep : public SolverStep {
530
if (CS.isTooComplex(Solutions))
531
return done(/*isSuccess=*/false);
532
533
+ if (CS.worseThanBestSolution())
534
+ return done(/*isSuccess=*/false);
535
+
536
while (auto choice = Producer()) {
537
if (shouldSkip(*choice))
538
continue;
0 commit comments