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 7cb6cd6 commit d4a7f3fCopy full SHA for d4a7f3f
lib/AST/LookupVisibleDecls.cpp
@@ -124,6 +124,10 @@ static bool areTypeDeclsVisibleInLookupMode(LookupState LS) {
124
static bool isDeclVisibleInLookupMode(ValueDecl *Member, LookupState LS,
125
const DeclContext *FromContext,
126
LazyResolver *TypeResolver) {
127
+ // Accessors are never visible directly in the source language.
128
+ if (isa<AccessorDecl>(Member))
129
+ return false;
130
+
131
if (TypeResolver) {
132
TypeResolver->resolveDeclSignature(Member);
133
TypeResolver->resolveAccessControl(Member);
0 commit comments