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.
2 parents ebbb9de + a68c2ac commit fa9bf17Copy full SHA for fa9bf17
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