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 b49be98 commit 76564eaCopy full SHA for 76564ea
lib/Sema/CSBindings.cpp
@@ -369,8 +369,12 @@ void PotentialBindings::inferTransitiveBindings(
369
addLiteral(literal.second.getSource());
370
371
// Infer transitive defaults.
372
- for (const auto &def : bindings.Defaults)
+ for (const auto &def : bindings.Defaults) {
373
+ if (def.getSecond()->getKind() == ConstraintKind::DefaultClosureType)
374
+ continue;
375
+
376
addDefault(def.second);
377
+ }
378
379
// TODO: We shouldn't need this in the future.
380
if (entry.second->getKind() != ConstraintKind::Subtype)
0 commit comments