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
let _:@execution(caller)()async->NonSendable= erased2 // expected-note {{type 'NonSendable' does not conform to 'Sendable' protocol}}
104
104
// expected-error@-1 {{cannot convert '@isolated(any) @Sendable () async -> NonSendable' to '@execution(caller) () async -> NonSendable' because crossing of an isolation boundary requires parameter and result types to conform to 'Sendable' protocol}}
105
105
106
-
let _:@execution(caller)(NonSendable)async->Void= nonIsolated1 // expected-note {{type 'NonSendable' does not conform to 'Sendable' protocol}}
107
-
// expected-error@-1 {{annot convert '@Sendable (NonSendable) -> Void' to '@execution(caller) (NonSendable) async -> Void' because crossing of an isolation boundary requires parameter and result types to conform to 'Sendable' protocol}}
106
+
let _:@execution(caller)(NonSendable)async->Void= nonIsolated1 // Ok
108
107
let _:@execution(caller)(NonSendable)async->Void= nonIsolated2 // expected-note {{type 'NonSendable' does not conform to 'Sendable' protocol}}
109
108
// expected-error@-1 {{cannot convert '@Sendable (NonSendable) async -> Void' to '@execution(caller) (NonSendable) async -> Void' because crossing of an isolation boundary requires parameter and result types to conform to 'Sendable' protocol}}
110
109
111
-
let _:@execution(caller)()async->NonSendable= nonIsolated3 // expected-note {{type 'NonSendable' does not conform to 'Sendable' protocol}}
112
-
// expected-error@-1 {{cannot convert '@Sendable () -> NonSendable' to '@execution(caller) () async -> NonSendable' because crossing of an isolation boundary requires parameter and result types to conform to 'Sendable' protocol}}
110
+
let _:@execution(caller)()async->NonSendable= nonIsolated3 // Ok
113
111
let _:@execution(caller)()async->NonSendable= nonIsolated4 // expected-note {{type 'NonSendable' does not conform to 'Sendable' protocol}}
114
112
// expected-error@-1 {{cannot convert '@Sendable () async -> NonSendable' to '@execution(caller) () async -> NonSendable' because crossing of an isolation boundary requires parameter and result types to conform to 'Sendable' protocol}}
0 commit comments