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

Value has the wrong type.

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

example
type Stock = Int {    min: 0}function add(a: Stock, b: Stock) -> Stock {    return a + b}
text
error: `Int` can't be used where `Stock` is required --> main.jadpo:6:12  |6 |     return a + b  |            ^^^^^ this is `Int`  reason: Arithmetic works on the representation, so this is a plain `Int`; only `Stock(...)` makes it a `Stock`, checking its rules.  next: Convert it with `Stock(a + b)` (agent)  rule: type.mismatch  help: https://jadpo.dev/docs/errors/type.mismatchcheck failed: 1 error, 1 file

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