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
@@ -43,10 +44,10 @@ distributed actor DA: DistributedActor {
43
44
typealiasActorSystem=FakeActorSystem
44
45
}
45
46
46
-
// FIXME(distributed): error reporting is a bit whacky here; needs cleanup
47
-
// expected-error@+2{{actor type 'A2' cannot conform to the 'DistributedActor' protocol. Isolation rules of these actor types are not interchangeable.}}
48
-
// expected-error@+1{{actor type 'A2' cannot conform to the 'DistributedActor' protocol. Isolation rules of these actor types are not interchangeable.}}
49
47
actorA2:DistributedActor{
48
+
// FIXME(distributed): error reporting is a bit whacky here; needs cleanup
49
+
// expected-error@-2{{actor type 'A2' cannot conform to the 'DistributedActor' protocol. Isolation rules of these actor types are not interchangeable.}}
50
+
// expected-error@-3{{actor type 'A2' cannot conform to the 'DistributedActor' protocol. Isolation rules of these actor types are not interchangeable.}}
50
51
nonisolatedvarid:ID{
51
52
fatalError()
52
53
}
@@ -63,8 +64,9 @@ actor A2: DistributedActor {
63
64
}
64
65
}
65
66
66
-
// expected-error@+1{{non-distributed actor type 'C2' cannot conform to the 'DistributedActor' protocol}}
67
-
finalclassC2:DistributedActor{
67
+
finalclassDA2:DistributedActor{
68
+
// expected-error@-1{{non-actor type 'DA2' cannot conform to the 'AnyActor' protocol}}
69
+
// expected-error@-2{{non-distributed actor type 'DA2' cannot conform to the 'DistributedActor' protocol}}
68
70
nonisolatedvarid:ID{
69
71
fatalError()
70
72
}
@@ -86,3 +88,19 @@ struct S2: DistributedActor {
86
88
// expected-error@-3{{type 'S2' does not conform to protocol 'Identifiable'}}
0 commit comments