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 b3b5d58 commit 8aab162Copy full SHA for 8aab162
lib/Sema/CSStep.h
@@ -662,6 +662,9 @@ class DisjunctionStep final : public BindingStep<DisjunctionChoiceProducer> {
662
// Disable all of the overload choices which are different from
663
// the one which is currently picked for representative.
664
for (auto *constraint : disjunction->getNestedConstraints()) {
665
+ if (constraint->getKind() != ConstraintKind::BindOverload)
666
+ continue;
667
+
668
auto choice = constraint->getOverloadChoice();
669
if (!choice.isDecl() || choice.getDecl() == representative.getDecl())
670
continue;
0 commit comments