mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-15 04:32:21 +00:00
21 lines
225 B
Text
21 lines
225 B
Text
|
|
||
|
@pure
|
||
|
fun f_pure(): int {
|
||
|
return f_impure();
|
||
|
}
|
||
|
|
||
|
fun f_impure(): int {}
|
||
|
|
||
|
fun main(): int {
|
||
|
return f_pure();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@compilation_should_fail
|
||
|
@stderr
|
||
|
"""
|
||
|
an impure operation in a pure function
|
||
|
return f_impure();
|
||
|
"""
|
||
|
*/
|