Jadpo is experimental and not ready for production. These docs follow the compiler's main branch as of 30 Oct 2026. What's built · Install 0.1.0
jadpo
Reference: Values and types

Values and types · rule

type.duplicate_variant

Enum variant is declared twice.

Area 2, Values and types; not declinable; the next step is usually the agent's.

example
type TicketStatus = Enum {    open    closed    open}
text
error: `TicketStatus.open` is declared twice --> main.jadpo:4:5  |2 |     open  |     ---- first declared here4 |     open  |     ^^^^ declared again  reason: Each variant of an enum has its own name, so a value and a `match` arm name exactly one.  next: Remove one `open`, or rename it (agent)  rule: type.duplicate_variant  help: https://jadpo.dev/docs/errors/type.duplicate_variantcheck failed: 1 error, 1 file

Markdown for agents: /docs/errors/type.duplicate_variant.md.Built from Jadpo main at a707efb.