Improve Type Error Messages
Bug #867372 reported by
William Candillon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
New
|
Medium
|
Markos Zaharioudakis |
Bug Description
Consider the following query:
declare function local:foo($a as element(foo))
{
$a/text()
};
local:foo(
It will throw the following error:
Query: <test.xq>, line 6, column 11: [XPTY0004] Cannot treat [NodeXQType elementNode nametest=[uri: , local: bar] content=[XQType ANY_TYPE_KIND*]] as [NodeXQType elementNode nametest=[uri: , local: foo] content=[XQType ANY_TYPE_KIND*]]
These kind of messages should be improved to more comprehensive messages.
To post a comment you must log in.
This does not raise an error anymore !