bynk.types.unknown_static_member
Error A name after HttpResult. that is not one of its variants. An unknown member of a type you declared is bynk.resolve.unknown_static_member.
HttpResult is a built-in type with a fixed set of variants, the HTTP statuses a handler can answer with, such as Ok, Created, NotFound and ServerError. HttpResult.Nope names one that does not exist, usually a misspelling or a status the set does not include. Pick one of the listed variants. A type you declared yourself is checked by bynk.resolve.unknown_static_member.
Example
HttpResult.Nope // ✗ no such variant
HttpResult.NotFound // ✓In the Book
See also
- The grammar rule it governs:
field_access. - Every code in its category, Type checking, on the diagnostic index.
bynk explain bynk.types.unknown_static_membershows the same from the installed toolchain, without a network.