1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-13 11:42:18 +00:00
ton/tolk-tester/tests/invalid-mutate-2.tolk

11 lines
156 B
Text
Raw Normal View History

fun cantAssignToVal() {
val x = 10;
var y = 20;
[y, x] = [30, 40];
}
/**
@compilation_should_fail
@stderr modifying immutable variable `x`
*/