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 025555f commit 3355a72Copy full SHA for 3355a72
lib/Sema/TypeCheckDecl.cpp
@@ -4268,13 +4268,12 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
4268
4269
void visitSubscriptDecl(SubscriptDecl *SD) {
4270
if (!IsFirstPass) {
4271
- checkAccessControl(TC, SD);
4272
return;
4273
}
4274
4275
TC.validateDecl(SD);
4276
-
4277
TC.checkDeclAttributes(SD);
+ checkAccessControl(TC, SD);
4278
4279
4280
void visitTypeAliasDecl(TypeAliasDecl *TAD) {
0 commit comments