mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-13 03:32:22 +00:00
13 lines
281 B
Text
13 lines
281 B
Text
|
fun asdf(mutate cs: slice) {}
|
||
|
|
||
|
fun main(cs: slice) {
|
||
|
cs.asdf();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@compilation_should_fail
|
||
|
@stderr function `asdf` mutates parameter `cs`
|
||
|
@stderr consider calling `asdf(mutate cs)`, not `cs.asdf`()
|
||
|
@stderr alternatively, rename parameter to `self` to make it a method
|
||
|
*/
|