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 be88c15 commit c2bb58dCopy full SHA for c2bb58d
lib/AST/LookupVisibleDecls.cpp
@@ -842,7 +842,8 @@ class OverrideFilteringConsumer : public VisibleDeclConsumer {
842
// don't substitute either.
843
bool shouldSubst = (!BaseTy->isAnyObject() &&
844
!BaseTy->hasTypeVariable() &&
845
- BaseTy->getNominalOrBoundGenericNominal() &&
+ (BaseTy->getNominalOrBoundGenericNominal() ||
846
+ BaseTy->is<ArchetypeType>()) &&
847
VD->getDeclContext()->isTypeContext());
848
ModuleDecl *M = DC->getParentModule();
849
0 commit comments