Skip to content

Commit aefbf9d

Browse files
committed
Parser: fix diagnostic regression from r7387
Swift SVN r7396
1 parent 354c5f4 commit aefbf9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Parse/ParsePattern.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ parseSelectorArgument(Parser &P,
141141
if (P.Tok.is(tok::comma)) {
142142
P.diagnose(P.Tok, diag::func_selector_with_not_one_argument);
143143
P.skipUntil(tok::r_paren);
144+
P.consumeIf(tok::r_paren);
144145
return makeParserError();
145146
}
146147

0 commit comments

Comments
 (0)