leo/tests/compiler/mutability/const.leo

10 lines
137 B
Plaintext
Raw Normal View History

2021-05-03 17:28:53 +03:00
/*
namespace: Compile
expectation: Fail
*/
// Let variables are immutable by default.
2020-06-30 06:29:53 +03:00
function main() {
const a = 1u32;
2020-07-17 22:59:18 +03:00
a = 0;
2020-06-30 06:29:53 +03:00
}