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() {
9393 func mixed_args_1( a: ( ) -> Void , _: ( ) -> Void ) { }
9494 func mixed_args_2( _: ( ) -> Void , a: ( ) -> Void , _: ( ) -> Void ) { } // expected-note {{'mixed_args_2(_:a:_:)' declared here}}
9595
96- mixed_args_1
97- { }
98- _: { }
96+ mixed_args_1 { } _: { }
9997
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:_:')}}
10399
104- mixed_args_2
105- { }
106- a: { }
107- _: { }
100+ mixed_args_2 { } a: { } _: { }
108101
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}}
112103
113104 // 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}}
118106}
119107
120108func produce( fn: ( ) -> Int ? , default d: ( ) -> Int ) -> Int { // expected-note {{declared here}}
You can’t perform that action at this time.
0 commit comments