1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-12 11:12:16 +00:00
ton/tolk-tester/tests/invalid-pure-1.tolk

21 lines
236 B
Text
Raw Permalink Normal View History

@pure
fun f_pure(): int {
return f_impure();
}
fun f_impure(): int { return 0; }
fun main(): int {
return f_pure();
}
/**
@compilation_should_fail
@stderr
"""
an impure operation in a pure function
return f_impure();
"""
*/