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
[Concurrency] Classes nested in actors are not semantically final.
The check for actor methods in `isSemanticallyFinal` was accidentally
kicking in for class members, which avoided `Sendable` checking on
classes nested in actors.
classMultiConformance:@uncheckedSendable{} // expected-note {{'MultiConformance' declares conformance to protocol 'Sendable' here}}
183
183
extensionMultiConformance:@uncheckedSendable{} // expected-error {{redundant conformance of 'MultiConformance' to protocol 'Sendable'}}
184
+
185
+
@available(SwiftStdlib 5.1,*)
186
+
actorMyActor{
187
+
// expected-warning@+1 {{non-final class 'Nested' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode}}
0 commit comments