leo/disabled_tests/compiler/global_consts/modify_global_const.leo

12 lines
130 B
Plaintext

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