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 {{non-Sendable '(Int) -> Int'-typed result can not be returned from main actor-isolated global function 'mainActorResult' to global actor 'CustomActor'-isolated context}}
74
74
// expected-note @-2 {{a function type must be marked '@Sendable' to conform to 'Sendable'}}
75
-
// expected-warning @-3 {{no 'async' operations occur within 'await' expression}}
75
+
// expected-warning @-3 {{no 'async' operations occur within 'await' expression}}{{11-17=}}
76
76
77
77
letcalc=Calculator()
78
78
79
79
let _ =(await calc.addCurried(1))(2)
80
80
// expected-error @-1 {{non-Sendable '(Int) -> Int'-typed result can not be returned from actor-isolated instance method 'addCurried' to global actor 'CustomActor'-isolated context}}
81
81
// expected-note@-2{{a function type must be marked '@Sendable' to conform to 'Sendable'}}
82
-
let _ =await(await calc.addCurried(1))(2) // expected-warning{{no 'async' operations occur within 'await' expression}}
82
+
let _ =await(await calc.addCurried(1))(2) // expected-warning{{no 'async' operations occur within 'await' expression}}{{11-17=}}
83
83
// expected-error @-1 {{non-Sendable '(Int) -> Int'-typed result can not be returned from actor-isolated instance method 'addCurried' to global actor 'CustomActor'-isolated context}}
84
84
// expected-note @-2 {{a function type must be marked '@Sendable' to conform to 'Sendable'}}
0 commit comments