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

12 lines
129 B
Plaintext
Raw Normal View History

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