leo/tests/compiler/mutability/let_fail.leo

10 lines
133 B
Plaintext
Raw Normal View History

2021-05-03 16:47:33 +03:00
/*
namespace: Compile
expectation: Fail
*/
// Variables are immutable by default.
function main() {
const a = 1u32;
2020-07-17 22:59:18 +03:00
a = 0;
}