mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-15 04:32:21 +00:00
15 lines
264 B
Text
15 lines
264 B
Text
|
fun increment(mutate x: int) {
|
||
|
|
||
|
}
|
||
|
|
||
|
fun main() {
|
||
|
var x = 0;
|
||
|
var inc = increment;
|
||
|
inc(x);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@compilation_should_fail
|
||
|
@stderr saving `increment` into a variable is impossible, since it has `mutate` parameters and thus can only be called directly
|
||
|
*/
|