leo/compiler/tests/mutability/function_input_mut.leo
2020-07-30 16:37:01 -07:00

6 lines
133 B
Plaintext

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