leo/asg/tests/pass/mutability/let_mut.leo

7 lines
134 B
Plaintext

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