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

ErrorsValues 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}
jadpo checkcheck failed: 1 error, 1 file

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_variant

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