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.
Pack{}
1 parent d0635a6 commit e5cb900Copy full SHA for e5cb900
lib/Parse/ParseType.cpp
@@ -179,7 +179,7 @@ ParserResult<TypeRepr> Parser::parseTypeSimple(
179
case tok::identifier:
180
// In SIL files (not just when parsing SIL types), accept the
181
// Pack{} syntax for spelling variadic type packs.
182
- if (SIL && Tok.isContextualKeyword("Pack") &&
+ if (isInSILMode() && Tok.isContextualKeyword("Pack") &&
183
peekToken().is(tok::l_brace)) {
184
TokReceiver->registerTokenKindChange(Tok.getLoc(),
185
tok::contextual_keyword);
0 commit comments