Improve Type Error Messages

Bug #867372 reported by William Candillon
6
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(<bar>Hello</bar>)

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.

Revision history for this message
Dana Florescu (dflorescu) wrote :

This does not raise an error anymore !

Changed in zorba:
assignee: nobody (nobody-users) → Markos Zaharioudakis (markos-za)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.