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 e563296 commit 9ab18f6Copy full SHA for 9ab18f6
lib/Sema/LookupVisibleDecls.cpp
@@ -837,7 +837,8 @@ class OverrideFilteringConsumer : public VisibleDeclConsumer {
837
// don't substitute either.
838
bool shouldSubst = (!BaseTy->isAnyObject() &&
839
!BaseTy->hasTypeVariable() &&
840
- BaseTy->getNominalOrBoundGenericNominal() &&
+ (BaseTy->getNominalOrBoundGenericNominal() ||
841
+ BaseTy->is<ArchetypeType>()) &&
842
VD->getDeclContext()->isTypeContext());
843
ModuleDecl *M = DC->getParentModule();
844
0 commit comments