BaseXdb / basex

BaseX Main Repository.
http://basex.org
BSD 3-Clause "New" or "Revised" License
694 stars 265 forks source link

Make sure FItem argument coercion is not skipped #2302

Closed GuntherRademacher closed 5 months ago

GuntherRademacher commented 5 months ago

In SeqType.coerce coercion is skipped, if an instance test succeeds. But in case of a function item, this also skips coercion of the arguments, which may still be necessary.

This change calculates whether there is any non-item()* argument, and enforces coercion in case there is.

The corresponding QT4 test cases are enum-024 and FunctionCall-058, these now produce the expected result.