bynk.provider.signature_mismatch
Error A provides operation's signature does not match the capability.
A provider operation must have the signature its capability declares: the same number of parameters, the same parameter types and the same return type. Callers are checked against the capability, so a provider that returns something else would hand them a value of the wrong type. The error points at the parameter or return type that differs, or at the operation when the counts differ. Change the provider to match, or change the capability, and with it every provider of it.
Example
capability Clock { fn now() -> Effect[Int]}
provides Clock = Fixed { fn now() -> Effect[String] { Effect.pure("0") } // ✗ the capability returns `Effect[Int]`}
provides Clock = Fixed { fn now() -> Effect[Int] { Effect.pure(0) } // ✓ same signature}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.signature_mismatchshows the same from the installed toolchain, without a network.