type.match_some_non_optional
Nullable pattern on a value that is never none.
Area 3, Logic; not declinable; the next step is usually the agent's.
function describe(label: Label) -> Label { return match label { some(name) -> name _ -> label }}
error label is never none, so some(...) can't match it
--> main.jadpo:3:9
|3 | some(name) -> name | ^^^^^^^^^^ for nullable values
- reason
some(name)andnonematch a nullable value, writtenT?;labelis aLabel.- next
- Use
labeldirectly: it always has a value (agent) - rule
- type.
match_ some_ non_ optional - help
- https://jadpo.
dev/docs/errors/type. match_ some_ non_ optional
Markdown for agents: /docs/errors/type.match_some_non_optional.md.Built from Jadpo main at aee2e8f.