duplicate import of same module
Bug #867232 reported by
Matthias Brantner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
New
|
Medium
|
Markos Zaharioudakis |
Bug Description
If compiling the attached main module (main.xq), an error is raised because of a duplicate function declaration of utils:bar.
In this example (a imports b, a imports utils, and b imports utils). The problem is that a imports utils without a location hint and b imports utils with a location hint. Hence, the translator doesn't detect that the same entity is imported multiple times.
IMHO, the translator either needs to detect that the same entity is imported or the error message must indicate why the same function is declared twice.
Changed in zorba: | |
importance: | High → Medium |
tags: | removed: parser-normalization |
To post a comment you must log in.
The file dup.tgz was added: None