Skip to content

Commit 51535fc

Browse files
committed
[test] Convert a couple of lines to use column matching
1 parent 8f9d30b commit 51535fc

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

test/Parse/trailing_closures.swift

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff 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

120108
func produce(fn: () -> Int?, default d: () -> Int) -> Int { // expected-note {{declared here}}

0 commit comments

Comments
 (0)