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-call-5.tolk

14 lines
209 B
Text
Raw Normal View History

fun inc(x: int) {
return x + 1;
}
fun main() {
return inc(_);
}
/**
@compilation_should_fail
@stderr `_` can't be used as a value; it's a placeholder for a left side of assignment
@stderr inc(_)
*/