leo/tests/compiler/global_consts/modify_global_const.leo

12 lines
130 B
Plaintext
Raw Normal View History

2021-05-05 21:06:15 +03:00
/*
namespace: Compile
expectation: Fail
*/
const basic: u32 = 8;
function main() {
// Cannot re-assign!
basic = 2u32;
}