Skip to content

Commit a25f996

Browse files
[tests] Adjusting test ambiguos test that was also fixed in SR-11540
1 parent 3b2dd8c commit a25f996

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Constraints/diag_ambiguities.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ func +++(d: Double, i: Int) {} // expected-note{{found this candidate}}
1818
1 +++ 2 // expected-error{{ambiguous use of operator '+++'}}
1919

2020
class C {
21-
init(_ action: (Int) -> ()) {} // expected-note{{found this candidate}}
22-
init(_ action: (Int, Int) -> ()) {} // expected-note{{found this candidate}}
21+
init(_ action: (Int) -> ()) {}
22+
init(_ action: (Int, Int) -> ()) {}
2323
}
2424

2525
func g(_ x: Int) -> () {} // expected-note{{found this candidate}}
2626
func g(_ x: Int, _ y: Int) -> () {} // expected-note{{found this candidate}}
2727
C(g) // expected-error{{ambiguous use of 'g'}}
2828

2929
func h<T>(_ x: T) -> () {}
30-
C(h) // expected-error{{ambiguous use of 'init(_:)'}}
30+
_ = C(h) // OK - init(_: (Int) -> ())
3131

3232
func rdar29691909_callee(_ o: AnyObject?) -> Any? { return o } // expected-note {{found this candidate}}
3333
func rdar29691909_callee(_ o: AnyObject) -> Any { return o } // expected-note {{found this candidate}}

0 commit comments

Comments
 (0)