Jadpo is experimental and not ready for production. These docs follow the compiler's main branch as of 5 Nov 2026. What's built · Install 0.3.0
jadpo
ReferenceErrors

ErrorsStandard library · rule

type.reserved_variant_name

Variant is called all, which lists an enum's variants.

Area 19, Standard library; not declinable; the next step is usually the agent's.

.all lists every variant of an enum whose variants carry no data, so no enum declares a variant called all. A closed list whose code is all writes it with a trailing _, as Albania's lek is Currency.all_.

example
type Newsletter = Enum {    subscribed    all}
jadpo checkcheck failed: 1 error, 1 file

error all can't be a variant of Newsletter

--> main.jadpo:3:5

  |3 |     all  |     ^^^ reserved
reason
Newsletter.all lists every variant of Newsletter, so no variant takes the name all.
next
Rename the variant (agent)
rule
type.reserved_variant_name
help
https://jadpo.dev/docs/errors/type.reserved_variant_name

true, false and none are values, so no variant takes those names either: beside a Kind?, Kind.none would read as the none it isn't. Any other reserved word may name a variant.

example
type Compression = Enum {    gzip    none}
jadpo checkcheck failed: 1 error, 1 file

error none can't be a variant of Compression

--> main.jadpo:3:5

  |3 |     none  |     ^^^^ reserved
reason
none is a value in its own right, and Compression.none beside it would read as that value, which it isn't.
next
Rename the variant (agent)
rule
type.reserved_variant_name
help
https://jadpo.dev/docs/errors/type.reserved_variant_name

Markdown for agents: /docs/errors/type.reserved_variant_name.md.Built from Jadpo main at aee2e8f.