type.assign_unknown
Assignment target is not declared.
Area 3, Logic; not declinable; the next step is usually the agent's.
type Count = Int {}function total(count: Count) -> Count { running = count return count}
error running isn't declared
--> main.jadpo:4:5
|4 | running = count | ^^^^^^^ not declared
- reason
- An assignment changes a
var mutdeclared earlier in this block or one around it. - next
- Declare it first, as in
var mut running: Count = ...(agent) - rule
- type.
assign_ unknown - help
- https://jadpo.
dev/docs/errors/type. assign_ unknown
Markdown for agents: /docs/errors/type.assign_unknown.md.Built from Jadpo main at aee2e8f.