leo/tests/compiler/mutability/let_mut.leo

12 lines
169 B
Plaintext
Raw Normal View History

2021-05-03 16:47:33 +03:00
/*
namespace: Compile
expectation: Fail
*/
// Adding the `mut` keyword makes a variable mutable.
2020-07-31 02:37:01 +03:00
function main() {
let a = 1u32;
2020-07-17 22:59:18 +03:00
a = 0;
2021-05-03 16:47:33 +03:00
return a == 0u32;
}