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 484fc77 commit a68c2acCopy full SHA for a68c2ac
lib/Parse/ParseDecl.cpp
@@ -7958,6 +7958,9 @@ void Parser::parseTopLevelAccessors(
7958
consumeTokenWithoutFeedingReceiver();
7959
7960
ParameterList *indices = nullptr;
7961
+ if (auto subscript = dyn_cast<SubscriptDecl>(storage))
7962
+ indices = subscript->getIndices();
7963
+
7964
bool hadLBrace = consumeIf(tok::l_brace);
7965
7966
// Prepopulate the field for any accessors that were already parsed parsed accessors
0 commit comments