q/tests/programs/nested-calls.q

7 lines
No EOL
69 B
Text

main() {
assert f(f(f(1))) == 4
}
f(x int) -> int {
return x + 1
}