mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-13 03:32:22 +00:00
11 lines
206 B
Text
11 lines
206 B
Text
|
fun cantRedefImmutable() {
|
||
|
val x = 10;
|
||
|
var (y: int, x redef) = (20, 30);
|
||
|
return (y, x);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@compilation_should_fail
|
||
|
@stderr modifying an immutable variable `x` (left side of assignment)
|
||
|
*/
|