#@ def call2(a):
#@ end

#@ def call1(v):
#@   if True:
#@     call2()
#@   end
#@   return v
#@ end

test1: #@ call1(None)

+++

ERR: 
- function call2 missing 1 argument (a)
    in call2
      stdin:1 | #@ def call2(a):
    in call1
      stdin:6 | #@     call2()
    in <toplevel>
      stdin:11 | test1: #@ call1(None)