I am going through the exercism track and on the grains exercise I came acrosse this issue with Num.powInt
.
It is easy to replicate in the repl, just type Num.powInt (Num.toU8 2) 8
. I would expect this to overflow and panic, but instead it silently returns 0. Is this the wanted behavior? If not, is this issue known or should I create a new one on github?
Yeah, 0 is not correct :p
It doesn't look like a known issue, feel free to create a new one
Last updated: Jul 06 2025 at 12:14 UTC