Skip to content

Commit fa1b4b2

Browse files
committed
fix test: decl/protocol/special/DistributedActor.swift
1 parent e408fa9 commit fa1b4b2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/decl/protocol/special/DistributedActor.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,15 @@ distributed actor D3 {
2828
@available(SwiftStdlib 5.5, *)
2929
distributed actor D4 {
3030
// expected-error@-1{{actor 'D4' has no initializers}}
31-
// expected-error@-2{{type 'D4' does not conform to protocol 'DistributedActor'}}
3231
let actorTransport: String
33-
// expected-error@-1{{invalid redeclaration of synthesized property 'actorTransport'}}
32+
// expected-error@-1{{invalid redeclaration of synthesized implementation for protocol requirement 'actorTransport'}}
3433
// expected-error@-2{{property 'actorTransport' cannot be defined explicitly, as it conflicts with distributed actor synthesized stored property}}
3534
// expected-note@-3{{stored property 'actorTransport' without initial value prevents synthesized initializers}}
3635
let id: AnyActorIdentity
37-
// expected-error@-1{{invalid redeclaration of synthesized property 'id'}}
36+
// expected-error@-1{{actor-isolated property 'id' cannot be used to satisfy a protocol requirement}}
3837
// expected-error@-2{{property 'id' cannot be defined explicitly, as it conflicts with distributed actor synthesized stored property}}
39-
// expected-note@-3{{stored property 'id' without initial value prevents synthesized initializers}}
40-
// expected-note@-4{{candidate exactly matches}}
38+
// expected-error@-3{{actor-isolated property 'id' cannot be used to satisfy a protocol requirement}}
39+
// expected-note@-4{{stored property 'id' without initial value prevents synthesized initializers}}
4140
}
4241

4342
// ==== Tests ------------------------------------------------------------------

0 commit comments

Comments
 (0)