mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-13 11:42:18 +00:00
10 lines
169 B
Text
10 lines
169 B
Text
|
fun cantReturnNothingFromSelf(mutate self: int): self {
|
||
|
self = self + 1;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@compilation_should_fail
|
||
|
@stderr missing return; forgot `return self`?
|
||
|
@stderr }
|
||
|
*/
|