leo/compiler/tests/statements/conditional/mutate.leo
2020-07-17 12:59:18 -07:00

12 lines
139 B
Plaintext

function main(bit: u32) -> u32 {
let mut a = 5u32;
if bit == 1 {
a = 1;
} else {
a = 0;
}
return a
}