Skip to content

Commit fa9bf17

Browse files
authored
Merge pull request #70370 from hamishknight/oops
2 parents ebbb9de + a68c2ac commit fa9bf17

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Parse/ParseDecl.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7958,6 +7958,9 @@ void Parser::parseTopLevelAccessors(
79587958
consumeTokenWithoutFeedingReceiver();
79597959

79607960
ParameterList *indices = nullptr;
7961+
if (auto subscript = dyn_cast<SubscriptDecl>(storage))
7962+
indices = subscript->getIndices();
7963+
79617964
bool hadLBrace = consumeIf(tok::l_brace);
79627965

79637966
// Prepopulate the field for any accessors that were already parsed parsed accessors

0 commit comments

Comments
 (0)