Skip to content
Playground(another site)

bynk.consumes.unknown_context

Error consumes names a context that does not exist.

A consumes clause is how one context states that it depends on another, so it has to name a context in the project, and no unit of that name exists. Check the spelling against the context line of the unit you mean.

Example

pay.bynk
context pay
// shop.bynk
context shop
consumes paymnet // ✗ no context `paymnet`
consumes pay // ✓ the context's declared name

In the Book

See also

  • The grammar rule it governs: consumes_decl.
  • Every code in its category, Consumes, on the diagnostic index.
  • bynk explain bynk.consumes.unknown_context shows the same from the installed toolchain, without a network.