mirror of
https://github.com/apple/swift.git
synced 2026-11-28 08:15:08 +01:00
A `$P` stub generated by `@Resolvable` is only ever resolved as a remote reference, but the implicitly synthesized `init(actorSystem:)` allowed creating a local instance of it, whose distributed methods only trap. The macro now declares an unavailable `init(actorSystem:)` in the stub, which also suppresses the synthesized one, so creating a local stub is diagnosed and points at `$P.resolve(id:using:)` instead. The test cases that called distributed methods on a locally created stub are removed, since such a stub can no longer be created.