I cannot reproduce the problem. What I did was add thie follwoing

declare function ext:bar3($i as xs:integer)
   $i + 2

in ext_mod.xq file (in test/unit) and then run the external_function
unit test. I did get the expected error of duplicate function

Can you provide a complete specific test that shows the bug?

You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.

  No error upon (almost) duplicate function declarations

Status in Zorba - The XQuery Processor:

Bug description:
  If you declare two XQuery functions that have the same name and
  signature (arity) in the same file, but the first is declared
  "external" and the second one isn't, Zorba allows the second
  declaration. It should be reported as an error.

To manage notifications about this bug go to:

Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to