1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-13 03:32:22 +00:00
ton/tolk-tester/tests/invalid-typing-4.tolk

13 lines
257 B
Text
Raw Normal View History

fun incNotChained(mutate self: int) {
self = self + 1;
}
fun cantCallNotChainedMethodsInAChain(x: int) {
return x.incNotChained().incNotChained();
}
/**
@compilation_should_fail
@stderr can not call method for `int` with object of type `void`
*/