1
0
Fork 0
mirror of synced 2025-09-23 04:08:33 +00:00
ZoKrates/zokrates_cli/examples/book/numeric_inference.zok
Dimitris Apostolou 28ac40923c
Fix typos
2023-01-11 03:14:28 +02:00

10 lines
274 B
Text

def main() {
// `255` is inferred to `255f`, and the addition happens between field elements
assert(255 + 1f == 256);
// `255` is inferred to `255u8`, and the addition happens between u8
// This causes an overflow
assert(255 + 1u8 == 0);
return;
}