[Bug 15402] New: hof-044

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15402

           Summary: hof-044
           Product: XPath / XQuery / XSLT
           Version: Member-only Editors Drafts
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
        AssignedTo: benjie.nguyen@gmail.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org


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.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 3 January 2012 15:30:33 UTC