Files
Konrad `ktoso` Malawski e3c0ae424a [Distributed] Make the init of @Resolvable stub types unavailable
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.
2026-11-06 18:06:59 +09:00
..