leo/tests/compiler/statements/nested_mutate.leo

21 lines
279 B
Plaintext
Raw Normal View History

2021-04-20 04:08:14 +03:00
/*
namespace: Compile
expectation: Pass
input_file:
2021-05-03 17:28:53 +03:00
- inputs/u32_3.in
- inputs/u32_5.in
- inputs/u32_6.in
2021-04-20 04:08:14 +03:00
*/
function main(x: u32) -> bool {
let d = x;
if x == 3 || x == 5 {
d += 1;
if x == 3 {
d += 2;
}
}
return d > x;
}