No error upon (almost) duplicate function declarations
Bug #862971 reported by
Paul J. Lucas
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
Medium
|
Markos Zaharioudakis |
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.
Changed in zorba: | |
importance: | Undecided → Medium |
description: | updated |
Changed in zorba: | |
assignee: | nobody → Markos Zaharioudakis (markos-za) |
Changed in zorba: | |
milestone: | none → 2.5 |
Changed in zorba: | |
status: | New → Incomplete |
Changed in zorba: | |
status: | Incomplete → Fix Committed |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I cannot reproduce the problem. What I did was add thie follwoing function:
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 declaration.
Can you provide a complete specific test that shows the bug?