type.match_arm_value
Match arm gives no value.
Area 3, Logic; not declinable; the next step is usually the agent's.
action notify(outcome: PaymentOutcome) -> Unit {}action receipt(outcome: PaymentOutcome) -> ReceiptId? { return match outcome { PaymentOutcome.pending -> none PaymentOutcome.paid -> { notify(outcome) } }}
error This arm gives no value
--> main.jadpo:6:9
|6 | PaymentOutcome.paid -> { | ^^^^^^^^^^^^^^^^^^^^^^^^ ends without a value
- reason
- A
matchused as a value gives one from every arm: an expression,rejectorpropagate; this block can reach its end without leaving. - next
- Write the arm's value after
->, or end the block withreturnorreject(agent) - rule
- type.
match_ arm_ value - help
- https://jadpo.
dev/docs/errors/type. match_ arm_ value
Markdown for agents: /docs/errors/type.match_arm_value.md.Built from Jadpo main at aee2e8f.