You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tryrethrowsLike(hasThrownMyError) // expected-error{{call can throw, but the error is not handled; a function declared 'rethrows' may only throw if its parameter does}}
174
+
// expected-note@-1{{call is to 'rethrows' function, but argument function can throw}}
175
+
176
+
trynotRethrowsLike1(body) // expected-error{{type 'any Error' cannot conform to 'P'}}
177
+
// expected-note@-1{{only concrete types such as structs, enums and classes can conform to protocols}}
178
+
179
+
trynotRethrowsLike2(body) // expected-error{{call can throw, but the error is not handled; a function declared 'rethrows' may only throw if its parameter does}}
180
+
trynotRethrowsLike3(body) // expected-error{{call can throw, but the error is not handled; a function declared 'rethrows' may only throw if its parameter does}}
tryrethrowsLike(body) // expected-error{{call can throw, but the error is not handled; a function declared 'rethrows' may only throw if its parameter does}}
0 commit comments