Skip to content

Commit 6fd25fd

Browse files
committed
LookupVisibleDecls: Process associated types in OverrideFilteringConsumer too
1 parent c41be6e commit 6fd25fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Sema/LookupVisibleDecls.cpp

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

786786
// If this kind of declaration doesn't participate in overriding, there's
787787
// no filtering to do here.
788-
if (!isa<AbstractFunctionDecl>(VD) && !isa<AbstractStorageDecl>(VD)) {
788+
if (!isa<AbstractFunctionDecl>(VD) &&
789+
!isa<AbstractStorageDecl>(VD) &&
790+
!isa<AssociatedTypeDecl>(VD)) {
789791
DeclsToReport.insert(FoundDeclTy(VD, Reason));
790792
return;
791793
}

0 commit comments

Comments
 (0)