leo/tests/compiler/mutability/function_input_mut.leo

13 lines
186 B
Plaintext
Raw Normal View History

2021-05-03 17:28:53 +03:00
/*
namespace: Compile
expectation: Pass
input_file: inputs/dummy.in
2021-05-03 17:28:53 +03:00
*/
2021-03-19 18:30:24 +03:00
// Function input are mutable by default.
2021-05-05 18:29:44 +03:00
function main(a: bool) -> bool {
2020-07-31 02:37:01 +03:00
a = true;
2021-05-05 18:29:44 +03:00
return a == true;
}