WorkerPool cannot have additional protocol conformance #1061
Labels
1 - triaged
Ticket makes sense and is well defined, ready to be worked on
relates-to-swift-feature
t:cluster:singleton
t:worker-pool
Milestone
Context:
Just learning about swift-distributed actor and system. I tried to make WorkerPool to adapt ClusterSingleton protocol to use it as single instance.
extension WorkerPool: ClusterSingleton {}
Then Xcode compiler fails with following message:
/Users/pbk/Documents/XcodeWorkSpace/ToyWorkSpace/DemoToycraft/DistributedActors.WorkerPool:3:16: Property 'actorSystem' cannot be defined explicitly, as it conflicts with distributed actor synthesized stored property
/Users/pbk/Documents/XcodeWorkSpace/ToyWorkSpace/DemoToycraft/DistributedActors.WorkerPool:2:16: Property 'id' cannot be defined explicitly, as it conflicts with distributed actor synthesized stored property
Also WorkerPool cannot conform to empty protocol.
Commit hash: 811d2e8 ( 1.0.0-beta.2 )
Environment:
IDE and tool chain : Xcode 14.0 RC, Xcode 14 RC tool chain
My application targets iOS 16.0 iphone 8 simulator
$ swift --version
swift-driver version: 1.45.2 Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)
Target: x86_64-apple-macosx12.0
Operating system: macOS Monterey 12.5.1
$ uname -a
Darwin iquest1127ui-MacBookPro.local 21.6.0 Darwin Kernel Version 21.6.0: Wed Aug 10 14:25:27 PDT 2022; root:xnu-8020.141.5~2/RELEASE_X86_64 x86_64
My system has IPv6 enabled.
The text was updated successfully, but these errors were encountered: