Skip to content

Commit bf37e69

Browse files
committed
[Distributed] add protocol test
1 parent c889513 commit bf37e69

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/decl/protocol/special/DistributedActor.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ class X: Identifiable {
2323
}
2424
}
2525

26+
protocol DAP: DistributedActor {
27+
// should work as expected, synthesis not triggering
28+
func test()
29+
}
30+
31+
extension DAP where ActorSystem.ActorID == String {
32+
func test() {
33+
_ = self.id == ""
34+
}
35+
}
36+
2637
distributed actor D2 {
2738
// expected-error@-1{{actor 'D2' has no initializers}}
2839
let actorSystem: String

0 commit comments

Comments
 (0)