[Bug 21597] New: higher-order-functions-068

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

            Bug ID: 21597
           Summary: higher-order-functions-068
    Classification: Unclassified
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0 Test Suite
          Assignee: abel.online@xs4all.nl
          Reporter: mike@saxonica.com
        QA Contact: public-qt-comments@w3.org

I believe this test is incorrect.

The variable $first is bound to:

function($x as xs:integer) as function(*) {
   let $second := function($y as xs:integer) as function(*) {
                    $countfun($x + $y)
                  }
   return f:fib($n - 2, $second)
}

But f:fib does not return a function; it returns an integer, so the body of
this $first function does not return what it is declared to return. This would
be clearer if the types of each function were properly declared; but certainly
the outermost caller of f:fib is expecting it to return an integer.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 5 April 2013 17:17:39 UTC