mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-15 04:32:21 +00:00
12 lines
193 B
Text
12 lines
193 B
Text
|
const op_increase = 0x123;
|
||
|
|
||
|
fun cantAssignToConst() {
|
||
|
var x = 10;
|
||
|
(x, op_increase) = (20, 30);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@compilation_should_fail
|
||
|
@stderr modifying an immutable variable `op_increase`
|
||
|
*/
|