@@ -44,7 +44,8 @@ actor A7 {
44
44
@available ( SwiftStdlib 5 . 1 , * )
45
45
class C1 : Actor {
46
46
// 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'}}
48
49
nonisolated var unownedExecutor : UnownedSerialExecutor {
49
50
fatalError ( " " )
50
51
}
@@ -53,7 +54,8 @@ class C1: Actor {
53
54
@available ( SwiftStdlib 5 . 1 , * )
54
55
class C2 : Actor {
55
56
// 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'}}
57
59
// FIXME: this should be an isolation violation
58
60
var unownedExecutor : UnownedSerialExecutor {
59
61
fatalError ( " " )
@@ -64,7 +66,8 @@ class C2: Actor {
64
66
class C3 : Actor {
65
67
// expected-error@-1{{type 'C3' does not conform to protocol 'Actor'}}
66
68
// 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'}}
68
71
nonisolated func enqueue( _ job: UnownedJob ) { }
69
72
}
70
73
0 commit comments