leo/tests/compiler/mutability/const.leo
2021-05-03 17:28:53 +03:00

10 lines
137 B
Plaintext

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