leo/compiler/tests/statements/conditional/mutate.leo

12 lines
121 B
Plaintext

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