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.
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
matcharm 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.