mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-15 04:32:21 +00:00
11 lines
220 B
Text
11 lines
220 B
Text
|
fun cantReturnSelf(mutate x: int): int {
|
||
|
x += 1;
|
||
|
return self;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@compilation_should_fail
|
||
|
@stderr using `self` in a non-member function (it does not accept the first `self` parameter)
|
||
|
@stderr return self
|
||
|
*/
|