This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Test hof-044 in set misc-HigherOrderFunctions gives an unintended XPTY0004 error. In the function declare function local:ops() as (function(xs:double) as xs:double)* { (abs#1, local:round#1, function($x as xs:float){$x+1}, round-half-to-even(?, 2)) }; the third item function($x as xs:float){$x+1} is not a valid instance of the required type function(xs:double) as xs:double because it will not accept xs:double arguments.
I agree - I just found the same problem in the test suite, but haven't got around to reporting it yet. I suggest creating two versions of this test - one with the the fixed intended signature, and one that expects the error.
Fixed as suggested. hof-044 now delivers a success result; the original test which errors is retained as hof-919.