bynk.resolve.duplicate_capability
Error Two capabilities share a name.
A capability is named by the given clauses that ask for it and by the calls made through it, and its name is one of the unit's top-level names, so two capabilities of one name leave those 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_actor. A capability provided twice is bynk.resolve.duplicate_provider.
Example
capability Clock { … }capability Clock { … } // ✗ `Clock` is already declared
capability Clock { … }capability Calendar { … } // ✓ a name of its ownIn the Book
See also
- The grammar rule it governs:
capability_decl. - Every code in its category, Resolution, on the diagnostic index.
bynk explain bynk.resolve.duplicate_capabilityshows the same from the installed toolchain, without a network.