Skip to content

Commit a68c2ac

Browse files
committed
[Parse] Restore accidentally deleted code
1 parent 484fc77 commit a68c2ac

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)