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 4954278 commit 2adad14Copy full SHA for 2adad14
lib/AST/RequirementMachine/RequirementLowering.cpp
@@ -637,7 +637,9 @@ struct InferRequirementsWalker : public TypeWalker {
637
}
638
639
640
- if (!ty->isSpecialized())
+ // Both is<ExistentialType>() and isSpecialized() end up being true if we
641
+ // have invalid code where a protocol is nested inside a generic nominal.
642
+ if (ty->is<ExistentialType>() || !ty->isSpecialized())
643
return Action::Continue;
644
645
// Infer from generic nominal types.
0 commit comments