@@ -44,7 +44,8 @@ actor A7 {
4444@available ( SwiftStdlib 5 . 1 , * )
4545class C1 : Actor {
4646 // expected-error@-1{{non-actor type 'C1' cannot conform to the 'Actor' protocol}}
47- // expected-warning@-2{{non-final class 'C1' cannot conform to 'Sendable'; use '@unchecked Sendable'}}
47+ // expected-error@-2{{non-actor type 'C1' cannot conform to the 'AnyActor' protocol}}
48+ // expected-warning@-3{{non-final class 'C1' cannot conform to 'Sendable'; use '@unchecked Sendable'}}
4849 nonisolated var unownedExecutor : UnownedSerialExecutor {
4950 fatalError ( " " )
5051 }
@@ -53,7 +54,8 @@ class C1: Actor {
5354@available ( SwiftStdlib 5 . 1 , * )
5455class C2 : Actor {
5556 // expected-error@-1{{non-actor type 'C2' cannot conform to the 'Actor' protocol}}
56- // expected-warning@-2{{non-final class 'C2' cannot conform to 'Sendable'; use '@unchecked Sendable'}}
57+ // expected-error@-2{{non-actor type 'C2' cannot conform to the 'AnyActor' protocol}}
58+ // expected-warning@-3{{non-final class 'C2' cannot conform to 'Sendable'; use '@unchecked Sendable'}}
5759 // FIXME: this should be an isolation violation
5860 var unownedExecutor : UnownedSerialExecutor {
5961 fatalError ( " " )
@@ -64,7 +66,8 @@ class C2: Actor {
6466class C3 : Actor {
6567 // expected-error@-1{{type 'C3' does not conform to protocol 'Actor'}}
6668 // expected-error@-2{{non-actor type 'C3' cannot conform to the 'Actor' protocol}}
67- // expected-warning@-3{{non-final class 'C3' cannot conform to 'Sendable'; use '@unchecked Sendable'}}
69+ // expected-error@-3{{non-actor type 'C3' cannot conform to the 'AnyActor' protocol}}
70+ // expected-warning@-4{{non-final class 'C3' cannot conform to 'Sendable'; use '@unchecked Sendable'}}
6871 nonisolated func enqueue( _ job: UnownedJob ) { }
6972}
7073
0 commit comments