1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-13 03:32:22 +00:00
ton/tolk-tester/tests/invalid-mutate-1.tolk

12 lines
150 B
Text
Raw Normal View History

fun f(x: int) {}
fun cantAssignToVal() {
val x = 10;
f(x += 1);
}
/**
@compilation_should_fail
@stderr modifying immutable variable `x`
*/