Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error "dynamic function invoked with incorrect number of arguments" on code that works with Saxon and BaseX #88

Closed
martin-honnen opened this issue Aug 16, 2014 · 1 comment · Fixed by #106
Assignees

Comments

@martin-honnen
Copy link

I have tried the following sample code

let $f := function($nums as xs:integer*, $f1 as function(*)) as xs:integer
                      {
                        if (empty($nums))
                          then 0
                          else head($nums) + $f1(tail($nums), $f1)
                       },
                 $F := $f(?, $f)
             return
                 $F(1 to 200)

on http://try.zorba.io/queries/xquery and get the compilation error

[XPTY0004] dynamic function invoked with incorrect number of arguments

Line 5, column 46.

When I try the same code with Saxon 9.5 or BaseX 7.9 it compiles and runs fine.

@fcavalieri
Copy link
Contributor

@wcandillon
Fixed in PR #106 . William, can you review (but not merge)?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants