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
func bar(_ a:NonSendableKlass2)async->NonSendableKlass2{ a }
26
+
// expected-error@-1 {{non-sendable type 'NonSendableKlass2' cannot be returned from main actor-isolated implementation to caller of protocol requirement 'bar'}}
27
+
// expected-error@-2 {{non-sendable parameter type 'NonSendableKlass2' cannot be sent from caller of protocol requirement 'bar' into main actor-isolated implementation}}
// expected-error@-1 {{non-sendable type 'NonSendableKlass4' cannot be returned from actor-isolated implementation to caller of protocol requirement 'bar'}}
50
+
// expected-error@-2 {{non-sendable parameter type 'NonSendableKlass4' cannot be sent from caller of protocol requirement 'bar' into actor-isolated implementation}}
51
+
}
52
+
53
+
classNonSendableKlass5{}
54
+
// expected-note@-1 {{class 'NonSendableKlass5' does not conform to the 'Sendable' protocol}}
func bar(_ a:sending NonSendableKlass5, _ b:NonSendableKlass5)async->sending NonSendableKlass5 { a }
64
+
// expected-error@-1 {{non-sendable parameter type 'NonSendableKlass5' cannot be sent from caller of protocol requirement 'bar' into main actor-isolated implementation}}
0 commit comments