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

11 lines
175 B
Text
Raw Normal View History

fun cantRedefImmutable() {
val x = 10;
var (y: int, x redef) = (20, 30);
return (y, x);
}
/**
@compilation_should_fail
@stderr `redef` for immutable variable
*/