Skip to content
Playground(another site)

bynk.actor.unknown_context

Error IsContext(…) names something that is not a context of the project.

IsContext(…) names the project's own contexts, written as qualified names rather than strings, so that a typo is an error here and not a restriction that silently admits nobody. A name that is no context of the project is usually misspelt, or names a context that was renamed. Foreign callers are not contexts of the project: they have their own Foreign actors.

Example

shop/admin.bynk
context shop.admin
service audit {
on call(id: String) -> Effect[Int] by Caller {
Effect.pure(1)
}
}
// shop/billing.bynk
context shop.billing
actor Admin = Caller where IsContext(shop.admn) // ✗ no such context
actor Admin = Caller where IsContext(shop.admin) // ✓
service refunds {
on call(id: String) -> Effect[Int] by Admin {
Effect.pure(1)
}
}

See also

  • Every code in its category, Actors, on the diagnostic index.
  • bynk explain bynk.actor.unknown_context shows the same from the installed toolchain, without a network.