mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-15 04:32:21 +00:00
10 lines
218 B
Text
10 lines
218 B
Text
|
fun increment(self: int) {
|
||
|
self = self + 1;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@compilation_should_fail
|
||
|
@stderr modifying `self` (left side of assignment), which is immutable by default
|
||
|
@stderr probably, you want to declare `mutate self`
|
||
|
*/
|