leo/tests/compiler/mutability/function_input_mut.leo

15 lines
211 B
Plaintext
Raw Normal View History

2021-05-03 17:28:53 +03:00
/*
namespace: Compile
expectation: Pass
inputs:
- mut.in: |
[main]
a: bool = false;
*/
2021-03-19 18:30:24 +03:00
// Function input are mutable by default.
function main(a: bool) {
2020-07-31 02:37:01 +03:00
a = true;
2020-08-17 05:14:26 +03:00
console.assert(a == true);
}