Closed perimosocordiae closed 2 years ago
Also if you change the first line to x: i64 = 1
then everything works as expected.
It's rather annoying, but the "correct" fix here according to the intended language semantics at the moment would be to emit an error on x := 1
, because you can't use integer
at run-time.
Related crash with the same error message: casting an integer
to f64:
x := 1
x as f64
This one fails in a funky way:
Error message:
Note that this does work for
x += 2
, somehow.