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

Variant has no such field.

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

example
type DeclineReason = Text {    max_length: 200}type PaymentOutcome = Enum {    declined: {        reason: DeclineReason    }}function declined_payment(reason: DeclineReason) -> PaymentOutcome {    return PaymentOutcome.declined {        reason: reason        note: reason    }}
jadpo checkcheck failed: 1 error, 1 file

error PaymentOutcome.declined has no field note

--> main.jadpo:14:9

   |14 |         note: reason   |         ^^^^ not declared
reason
PaymentOutcome.declined's fields are reason.
next
Remove note, or declare it on PaymentOutcome.declined (agent)
rule
type.unknown_variant_field
help
https://jadpo.dev/docs/errors/type.unknown_variant_field

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