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

7 lines
134 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 a = 1u32;
2021-03-03 20:59:24 +03:00
a = 0;
console.assert(a == 0u32);
}