q/tests/programs/param.q

12 lines
No EOL
99 B
Text

main() {
assert f(1) == 3
}
f(x int) -> int {
y := g()
return x + y
}
g() -> int {
return 2
}