leo/tests/compiler/global_consts/modify_global_const.leo
2021-05-05 21:06:15 +03:00

12 lines
130 B
Plaintext

/*
namespace: Compile
expectation: Fail
*/
const basic: u32 = 8;
function main() {
// Cannot re-assign!
basic = 2u32;
}