W3C home > Mailing lists > Public > public-qt-comments@w3.org > October 2006

[Bug 3854] K-InternalVariablesWith-19

From: <bugzilla@wiggum.w3.org>
Date: Fri, 20 Oct 2006 10:33:12 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1Garge-0006Qa-LZ@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3854

           Summary: K-InternalVariablesWith-19
           Product: XML Query Test Suite
           Version: 1.0.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


In addition to exhibiting a circular variable definition, this query also
exhibits a static type checking error, because $var2 has type item()* and
(item()* + 1) fails to typecheck.  This is not reflected in the set of expected
error codes.

declare variable $var2 := local:func1();
declare variable $var := $var2 + 1;
declare function local:func1()
{
        local:func2()
};
declare function local:func2()
{
        local:func3()
};
declare function local:func3()
{
        local:func4()
};
declare function local:func4()
{
        $var
};
boolean($var)
Received on Friday, 20 October 2006 10:33:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:17 GMT