bynk.parse.variant_name_case
Error A sum-type or enum variant name is not capitalised.
A variant of a sum type or enum is written like a constant: an uppercase letter, then letters, digits or _ (Active, NotFound). A lowercase variant such as suspended is refused. Capitalise the name.
Example
type Status = | Active | suspended // ✗ a variant starts with a capital
type Status = | Active | Suspended // ✓In the Book
See also
- The grammar rules it governs:
sum_variant,enum_type. - Every code in its category, Parser, on the diagnostic index.
bynk explain bynk.parse.variant_name_caseshows the same from the installed toolchain, without a network.