leo/tests/compiler/mutability/let_mut.leo
2021-05-05 18:29:44 +03:00

14 lines
205 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file: input/dummy.in
*/
// Adding the `mut` keyword makes a variable mutable.
function main() -> bool {
let a = 1u32;
a = 0;
return a == 0u32;
}