bynk.provider.extra_operation
Error A provides block implements an operation not in the capability.
A provides block offers the capability's operations and no others. Callers reach a provider only through the capability, so an operation it does not declare could never be called, and it usually means a misspelt name or an operation added to the wrong capability. Remove it, or declare it on the capability. A capability operation the provider omits is bynk.provider.missing_operation.
Example
capability Clock { fn now() -> Effect[Int]}
provides Clock = Fixed { fn now() -> Effect[Int] { Effect.pure(0) } fn zone() -> Effect[String] { Effect.pure("UTC") } // ✗ `Clock` declares no `zone`}
capability Clock { fn now() -> Effect[Int] fn zone() -> Effect[String] // ✓ declared on the capability}In the Book
See also
- The grammar rule it governs:
provider_decl. - Every code in its category, Providers, on the diagnostic index.
bynk explain bynk.provider.extra_operationshows the same from the installed toolchain, without a network.