1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-15 04:32:21 +00:00
ton/tolk-tester/tests/invalid-mutate-3.tolk

12 lines
176 B
Text
Raw Permalink Normal View History

const op_increase = 0x123;
fun cantAssignToConst() {
var x = 10;
(x, op_increase) = (20, 30);
}
/**
@compilation_should_fail
@stderr modifying immutable constant
*/