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
// expected-note@+1{{consider making generic parameter 'Message' conform to the 'Sendable' protocol}} {{29-29=, Sendable}}
131
-
func send<Message:Codable>(message:Message)throws->String{""} // expected-warning{{non-sendable type 'Message' in parameter of actor-isolated instance method 'send(message:)' satisfying protocol requirement cannot cross actor boundary}}
137
+
func send<Message:Codable&Sendable>(message:Message)throws->String{""} // OK
132
138
}
133
139
134
140
protocolAsyncThrowsAll{
@@ -140,9 +146,15 @@ actor LocalOK_AsyncThrowsAll: AsyncThrowsAll {
// expected-warning@-2{{no calls to throwing functions occur within 'try' expression}}
227
239
228
240
let__secretlyKnownToBeLocal= wda
229
-
await __secretlyKnownToBeLocal.terminated(da:"local calls are okey!") // OK // OK // FIXME(#59356): (the __secretlyKnown is a hack, but the whenLocal crashes now on pending isolation getting with generic actors for closures)
241
+
await __secretlyKnownToBeLocal.terminated(da:"local calls are okey!") // OK // FIXME(#59356): (the __secretlyKnown is a hack, but the whenLocal crashes now on pending isolation getting with generic actors for closures)
230
242
// FIXME: pending fix of closure isolation checking with actors #59356
231
243
// await wda.whenLocal { __secretlyKnownToBeLocal in
232
244
// await __secretlyKnownToBeLocal.terminated(da: "local calls are okey!") // OK
0 commit comments