   // NOTE: All allocated distributed actors should be saved in this array, so
   // that they will be deallocated together at the end of this test!
   // This convention helps ensure that the test is not flaky.
-  var test: [DistributedActor?] = []
+  var test: [(any DistributedActor)?] = []
 
   test.append(LocalWorker(system: system))
   // CHECK: assign type:LocalWorker, id:ActorAddress(address: "[[ID1:.*]]")

  func remoteCall<Act, Err, Res>(
      on actor: Act,
      target: RemoteCallTarget,
      invocation: inout InvocationDecoder,
      throwing: Err.Type,
      returning: Res.Type
  ) async throws -> Res
      where Act: DistributedActor,
            Act.ID == ActorID,
            Res: SerializationRequirement {
    throw ExecuteDistributedTargetError(message: "Not implemented")
  }



distributed actor Throwy {
  init(system: FakeActorSystem, doThrow: Bool) throws {
    self.actorSystem = system
    if doThrow {
      throw MyError.test
    }
