type.match_pattern_type
Pattern cannot match this value.
Area 3, Logic; not declinable; the next step is usually the agent's.
function describe(state: DeliveryState) -> Label { return match state { true -> "Yes" DeliveryState.pending -> "Pending" DeliveryState.sent -> "Sent" DeliveryState.failed -> "Failed" }}
error A Bool can't match a DeliveryState
--> main.jadpo:3:9
|3 | true -> "Yes" | ^^^^ wrong kind of pattern
- reason
- A
DeliveryStateis matched by its variants, such asDeliveryState.pending. - next
- Write a pattern for a
DeliveryState(agent) - rule
- type.
match_ pattern_ type - help
- https://jadpo.
dev/docs/errors/type. match_ pattern_ type
Markdown for agents: /docs/errors/type.match_pattern_type.md.Built from Jadpo main at aee2e8f.