mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Parser: fix diagnostic regression from r7387
Swift SVN r7396
This commit is contained in:
@@ -141,6 +141,7 @@ parseSelectorArgument(Parser &P,
|
||||
if (P.Tok.is(tok::comma)) {
|
||||
P.diagnose(P.Tok, diag::func_selector_with_not_one_argument);
|
||||
P.skipUntil(tok::r_paren);
|
||||
P.consumeIf(tok::r_paren);
|
||||
return makeParserError();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user