1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-15 04:32:21 +00:00
ton/tolk-tester/tests/invalid-typing-5.tolk

14 lines
261 B
Text
Raw Normal View History

fun incNotChained(mutate self: int) {
self = self + 1;
}
fun failWhenReturnANotChainedValue(x: int): int {
return x.incNotChained();
}
/**
@compilation_should_fail
@stderr x.incNotChained()
@stderr can not convert type `void` to return type `int`
*/