leo/tests/compiler/mutability/let_fail.leo

10 lines
133 B
Plaintext

/*
namespace: Compile
expectation: Fail
*/
// Variables are immutable by default.
function main() {
const a = 1u32;
a = 0;
}