leo/tests/compiler/mutability/let_mut.leo
2021-05-03 16:47:33 +03:00

12 lines
169 B
Plaintext

/*
namespace: Compile
expectation: Fail
*/
// Adding the `mut` keyword makes a variable mutable.
function main() {
let a = 1u32;
a = 0;
return a == 0u32;
}