This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
This test case, () + (1, 2), expects the error XPTY0004. It should also allow the empty sequence as an expected result. XQuery, in section 3.4, Arithmetic Expressions, says: "If the atomized operand is an empty sequence, the result of the arithmetic expression is an empty sequence, and the implementation need not evaluate the other operand or apply the operator."
Fixed, by wrapping with fn:empty() and also allowing "true". I did the same to K-NumericAdd-38 which differs from -40 by having the operands in the opposite order. Feel free to change status to CLOSED if in agreement.