leo/asg/tests/pass/mutability/let_mut.leo
2021-01-25 07:19:38 -08:00

7 lines
138 B
Plaintext

// Adding the `mut` keyword makes a variable mutable.
function main() {
let mut a = 1u32;
a = 0;
console.assert(a == 0u32);
}