leo/tests/compiler/integers/i128/min_fail.leo

10 lines
318 B
Plaintext
Raw Normal View History

/*
namespace: Compile
expectation: Fail
*/
2022-07-29 02:23:16 +03:00
function main() -> i128 {
let a: i128 = -170141183460469231731687303715884105727i128;
return a - 2i128; // This line attempts to return --170141183460469231731687303715884105729i128 however, the smallest i128 value is -170141183460469231731687303715884105728i128.
}