Skip to content

Commit a13ba3b

Browse files
committed
Update test case for common-type reversion
1 parent c0917c9 commit a13ba3b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/attr/attr_noescape.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,9 @@ func overloadedEach<P: P2, T>(_ source: P, _ transform: @escaping (P.Element) ->
223223
struct S : P2 {
224224
typealias Element = Int
225225
func each(_ transform: @noescape (Int) -> ()) { // expected-error{{@noescape is the default and has been removed}} {{26-36=}}
226-
// expected-note@-1{{parameter 'transform' is implicitly non-escaping}}
227-
overloadedEach(self,
228-
transform, // expected-error{{passing non-escaping parameter 'transform' to function expecting an @escaping closure}}
229-
1)
226+
overloadedEach(self, // expected-error {{cannot invoke 'overloadedEach' with an argument list of type '(S, (Int) -> (), Int)'}}
227+
transform, 1)
228+
// expected-note @-2 {{overloads for 'overloadedEach' exist with these partially matching parameter lists: (O, @escaping (O.Element) -> (), T), (P, @escaping (P.Element) -> (), T)}}
230229
}
231230
}
232231

0 commit comments

Comments
 (0)