bynk.parse.empty_service
Error A service body is empty.
A service is its handlers, so one with none can never be called or triggered, and is refused. (A service that subscribes to Events takes exactly one on event.) Add a handler, or remove the service.
Example
service orders { // ✗ no handler}
service orders { on call() -> Effect[Int] by Caller { // ✓ Effect.pure(0) }}In the Book
See also
- The grammar rule it governs:
service_decl. - Every code in its category, Parser, on the diagnostic index.
bynk explain bynk.parse.empty_serviceshows the same from the installed toolchain, without a network.