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

6 lines
139 B
Plaintext

// Adding the `mut` keyword makes a function variable mutable.
function main(mut a: bool) {
a = true;
console.assert(a == true);
}