Parser cannot understand incorrect usage between = and : when initializing struct.
The second error message in example miss the possibility of :.
[4021] Error: The value identifier current is unbound.
│
8 │ let engine : SfcEngine = { seed, init_circle, current=0 }
│ ───┬───
│ ╰───── The value identifier current is unbound.
───╯
[3002] Error: Parse error, unexpected token `=`, you may expect `,` or `}`.
│
8 │ let engine : SfcEngine = { seed, init_circle, current=0 }
│ ┬
│ ╰── Parse error, unexpected token `=`, you may expect `,` or `}`.
───╯
error: failed when building
Parser cannot understand incorrect usage between
=
and:
when initializing struct.The second error message in example miss the possibility of
:
.