File tree Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -93,28 +93,16 @@ func test_multiple_trailing_syntax_without_labels() {
93
93
func mixed_args_1( a: ( ) -> Void , _: ( ) -> Void ) { }
94
94
func mixed_args_2( _: ( ) -> Void , a: ( ) -> Void , _: ( ) -> Void ) { } // expected-note {{'mixed_args_2(_:a:_:)' declared here}}
95
95
96
- mixed_args_1
97
- { }
98
- _: { }
96
+ mixed_args_1 { } _: { }
99
97
100
- mixed_args_1
101
- { } // expected-error {{incorrect argument labels in call (have '_:a:', expected 'a:_:')}}
102
- a: { }
98
+ mixed_args_1 { } a: { } // expected-error@:16 {{incorrect argument labels in call (have '_:a:', expected 'a:_:')}}
103
99
104
- mixed_args_2
105
- { }
106
- a: { }
107
- _: { }
100
+ mixed_args_2 { } a: { } _: { }
108
101
109
- mixed_args_2
110
- { } // expected-error {{missing argument for parameter 'a' in call}}
111
- _: { }
102
+ mixed_args_2 { } _: { } // expected-error@:18 {{missing argument for parameter 'a' in call}}
112
103
113
104
// FIXME: not a good diagnostic
114
- mixed_args_2
115
- { } // expected-error {{missing argument label 'a:' in call}}
116
- _: { }
117
- _: { }
105
+ mixed_args_2 { } _: { } _: { } // expected-error@:16 {{missing argument label 'a:' in call}}
118
106
}
119
107
120
108
func produce( fn: ( ) -> Int ? , default d: ( ) -> Int ) -> Int { // expected-note {{declared here}}
You can’t perform that action at this time.
0 commit comments