Test: Add and update tests for allowing var and let as argument labels

This commit is contained in:
Sam Lazarus
2019-04-18 17:18:26 -04:00
parent 2a38b48eea
commit ede8127adf
13 changed files with 91 additions and 62 deletions

View File

@@ -852,8 +852,7 @@ ERROR(parameter_specifier_as_attr_disallowed,none,
"'%0' before a parameter name is not allowed, place it before the parameter type instead",
(StringRef))
ERROR(parameter_specifier_repeated,none,
"parameter must not have multiple '__owned', 'inout', '__shared',"
" 'var', or 'let' specifiers", ())
"parameter must not have multiple '__owned', 'inout', or '__shared' specifiers", ())
WARNING(parameter_let_var_as_attr,none,
"'%0' in this position is interpreted as an argument label",
(StringRef))

View File

@@ -587,7 +587,7 @@ public:
void skipUntilDeclRBrace(tok T1, tok T2);
void skipListUntilDeclRBrace(tok T1, tok T2);
void skipListUntilDeclRBrace(SourceLoc startLoc, tok T1, tok T2);
/// Skip a single token, but match parentheses, braces, and square brackets.
///