BaseXdb / basex

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

Make sure FItem argument coercion is not skipped #2302

Closed GuntherRademacher closed 1 month ago

GuntherRademacher commented 1 month 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.