mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-15 04:32:21 +00:00
9 lines
195 B
Text
9 lines
195 B
Text
|
fun cantUseSelfAsType(mutate x: int) {
|
||
|
var y: self = x;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@compilation_should_fail
|
||
|
@stderr `self` type can be used only as a return type of a function (enforcing it to be chainable)
|
||
|
*/
|