mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Test: Add and update tests for allowing var and let as argument labels
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user