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

7 lines
138 B
Plaintext
Raw Normal View History

2021-01-25 18:17:42 +03:00
// Adding the `mut` keyword makes a variable mutable.
function main() {
let mut a = 1u32;
a = 0;
console.assert(a == 0u32);
}