syntax.expected_expression
Expected a value.
Area 3, Logic; not declinable; the next step is usually the agent's.
A variable is given its value on the line that declares it:
type Count = Int { min: 0}function doubled(count: Count) -> Count { var result: Count = return result}
error result has no value
--> main.jadpo:6:23
|6 | var result: Count = | ^ expected a value after `=`
- reason
- A variable is given its value on the line that declares it:
var name: Type = value. - next
- Write
result's value after=(agent) - rule
- syntax.
expected_ expression - help
- https://jadpo.
dev/docs/errors/syntax. expected_ expression
Markdown for agents: /docs/errors/syntax.expected_expression.md.Built from Jadpo main at aee2e8f.