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-2.tolk

11 lines
156 B
Text
Raw Permalink Normal View History

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