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-error@-1 {{cannot convert value of type '(isolated (any Actor)?) async -> Void' to specified type '@execution(caller) () async -> Void'}}
50
50
let _:@execution(concurrent)()async->Void= fn
51
51
// expected-error@-1 {{cannot convert value of type '(isolated (any Actor)?) async -> Void' to specified type '() async -> Void'}}
52
+
53
+
let _:(isolated (anyActor)?)async->Void= callerTest // Ok
54
+
let _:(isolated (anyActor)?)->Void= callerTest
55
+
// expected-error@-1 {{invalid conversion from 'async' function of type '@execution(caller) () async -> ()' to synchronous function type '(isolated (any Actor)?) -> Void'}}
56
+
let _:(isolated (anyActor)?)async->Void= concurrentTest
57
+
// expected-error@-1 {{cannot convert value of type '() async -> ()' to specified type '(isolated (any Actor)?) async -> Void'}}
58
+
let _:(isolated (anyActor)?,Int)async->Void= callerTest
59
+
// expected-error@-1 {{cannot convert value of type '@execution(caller) () async -> ()' to specified type '(isolated (any Actor)?, Int) async -> Void'}}
60
+
61
+
let _:(String, isolated anyActor)async->Void= caller // Ok
62
+
let _:(isolated (anyActor)?,String)async->Void= caller // Ok
63
+
64
+
let _:(Int, isolated anyActor)async->Void={@execution(caller) x in} // Ok
65
+
let _:(Int, isolated anyActor)async->Void={@execution(caller)(x:Int)in} // Ok
66
+
let _:(isolated anyActor,Int,String)async->Void={@execution(caller)(x:Int, _:String)in} // Ok
0 commit comments