gop
gop copied to clipboard
int128/uint128 static check valid range
The following program sample.gop triggers an unexpected result
// add a sample
var a uint128 = 1e60
println a
Expected result
build static check
main.gop:1:17: cannot use 1e60 (type untyped float) as type uint128 in assignment
Got
panic: value &{false [1152921504606846976 15520040025107828953 5703569335900062977 159]} was not in valid uint128 range
Gop Version
d1401eeadf067626221e2ee178c28685655f24cd
Additional Notes
No response