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
@Sendable func f() { // expected-warning{{actor-isolated synchronous instance method 'f()' cannot be marked as '@Sendable'}}
12
+
state = true
13
+
}
14
+
15
+
@Sendable nonisolated func g() { }
16
+
17
+
@Sendable func fAsync() async {
18
+
state = true
19
+
}
20
+
}
21
+
22
+
@available(SwiftStdlib 5.1, *)
23
+
@MainActor @Sendable func globalActorFunc() { } // expected-warning{{main actor-isolated synchronous global function 'globalActorFunc()' cannot be marked as '@Sendable'}}
0 commit comments