mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-13 11:42:18 +00:00
11 lines
159 B
Text
11 lines
159 B
Text
|
fun cantAssignToVal() {
|
||
|
val x = 10;
|
||
|
var y = 20;
|
||
|
[y, x] = [30, 40];
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@compilation_should_fail
|
||
|
@stderr modifying an immutable variable `x`
|
||
|
*/
|