https://tio.run/##K8jPq/z/PzG5JL9IwTcxM49LAQjyUssVkotSE0tSNV...
`I64.max_value() + 1` gives the expected result.
I'm going to have to look into that.
Thanks.
Unfortunately LLVM considers division overflow undefined: http://llvm.org/docs/LangRef.html#id109
If it's any use, you can see what Julia ended up doing here: https://github.com/JuliaLang/julia/issues/8188
And thank you for the additional info, I've updated the issue I opened accordingly:
https://github.com/ponylang/ponyc/issues/2858
https://tio.run/##K8jPq/z/PzG5JL9IwTcxM49LAQjyUssVkotSE0tSNV...