mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-15 04:32:21 +00:00
12 lines
153 B
Text
12 lines
153 B
Text
|
fun f(x: int) {}
|
||
|
|
||
|
fun cantAssignToVal() {
|
||
|
val x = 10;
|
||
|
f(x += 1);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@compilation_should_fail
|
||
|
@stderr modifying an immutable variable `x`
|
||
|
*/
|