Skip to content
Playground(another site)

bynk.resolve.duplicate_actor

Error Two actors share a name.

An actor is named by the by clause of a handler, and its name is one of the unit's top-level names, so two actors of one name leave a by with nothing to choose between. Rename one, or delete the repeat. The same holds for the other named declarations: bynk.resolve.duplicate_service, bynk.resolve.duplicate_agent and bynk.resolve.duplicate_capability.

Example

actor Admin { auth = None }
actor Admin { auth = None } // ✗ `Admin` is already declared
actor Admin { auth = None }
actor Support { auth = None } // ✓ a name of its own

In the Book

See also

  • Every code in its category, Resolution, on the diagnostic index.
  • bynk explain bynk.resolve.duplicate_actor shows the same from the installed toolchain, without a network.