Skip to content

Commit 938c84f

Browse files
committed
Fix test.
1 parent 1cbb1e7 commit 938c84f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Parse/multiple_trailing_closures.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,16 @@ func test_multiple_trailing_syntax_without_labels() {
8888

8989
multiple {} _: { }
9090

91-
func mixed_args_1(a: () -> Void, _: () -> Void) {}
92-
func mixed_args_2(_: () -> Void, a: () -> Void, _: () -> Void) {} // expected-note {{'mixed_args_2(_:a:_:)' declared here}}
91+
func mixed_args_1(a: () -> Void, _: () -> Void) {} // expected-note {{'mixed_args_1(a:_:)' declared here}}
92+
func mixed_args_2(_: () -> Void, a: () -> Void, _: () -> Void) {} // expected-note 2 {{'mixed_args_2(_:a:_:)' declared here}}
9393

9494
mixed_args_1
9595
{}
9696
_: {}
9797

9898
// FIXME: not a good diagnostic
9999
mixed_args_1
100-
{} // expected-error {{extra argument in call}}
100+
{} // expected-error {{extra argument in call}} expected-error {{missing argument for parameter #2 in call}}
101101
a: {}
102102

103103
mixed_args_2
@@ -112,7 +112,7 @@ func test_multiple_trailing_syntax_without_labels() {
112112

113113
// FIXME: not a good diagnostic
114114
mixed_args_2
115-
{} // expected-error {{extra argument in call}}
115+
{} // expected-error {{extra argument in call}} expected-error {{missing argument for parameter 'a' in call}}
116116
_: {}
117117
_: {}
118118
}

0 commit comments

Comments
 (0)