leo/tests/pass/parse/mutability/let_mut.leo

7 lines
138 B
Plaintext
Raw Normal View History

2021-03-03 20:59:24 +03:00
// Adding the `mut` keyword makes a variable mutable.
function main() {
let mut a = 1u32;
a = 0;
console.assert(a == 0u32);
}