bynk.resolve.duplicate_agent
Error Two agents share a name.
An agent is addressed by its name, and the name is one of the unit's top-level names, so two agents of one name leave a call 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_actor and bynk.resolve.duplicate_capability.
Example
agent Counter { … }agent Counter { … } // ✗ `Counter` is already declared
agent Counter { … }agent Tally { … } // ✓ a name of its ownIn the Book
See also
- The grammar rule it governs:
agent_decl. - Every code in its category, Resolution, on the diagnostic index.
bynk explain bynk.resolve.duplicate_agentshows the same from the installed toolchain, without a network.