Skip to content

Commit c538c52

Browse files
committed
LookupVisibleDecls: Process associated types in OverrideFilteringConsumer too
1 parent fe24ede commit c538c52

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/AST/LookupVisibleDecls.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,9 @@ class OverrideFilteringConsumer : public VisibleDeclConsumer {
790790

791791
// If this kind of declaration doesn't participate in overriding, there's
792792
// no filtering to do here.
793-
if (!isa<AbstractFunctionDecl>(VD) && !isa<AbstractStorageDecl>(VD)) {
793+
if (!isa<AbstractFunctionDecl>(VD) &&
794+
!isa<AbstractStorageDecl>(VD) &&
795+
!isa<AssociatedTypeDecl>(VD)) {
794796
DeclsToReport.insert(FoundDeclTy(VD, Reason));
795797
return;
796798
}

0 commit comments

Comments
 (0)