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: Logic

Logic · rule

type.incomparable

Values cannot be compared for equality.

Area 3, Logic; not declinable; the next step is usually the agent's.

example
type Stock = Int {    min: 0}type Quantity = Int {    min: 1}type Flag = Bool {}function same(per_pack: Stock, packs: Quantity) -> Flag {    return Flag(per_pack == packs)}
text
error: `Stock` and `Quantity` can't be compared --> main.jadpo:12:17   |12 |     return Flag(per_pack == packs)   |                 ^^^^^^^^^^^^^^^^^ different types  reason: `==` compares two values of the same type, after widening; `Stock` and `Quantity` are different types, and neither widens to the other.  next: Compare two values of the same type (agent)  rule: type.incomparable  help: https://jadpo.dev/docs/errors/type.incomparablecheck failed: 1 error, 1 file

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