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.
type TicketStatus = Enum { open closed open}
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.