[Bug 15692] New: [QT3] extvardef-022

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

           Summary: [QT3] extvardef-022
           Product: XPath / XQuery / XSLT
           Version: Member-only Editors Drafts
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
        AssignedTo: benjie.nguyen@gmail.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


This test uses undeclared variable $y, and expects result '5' despite its
return type being xs:boolean.


   <test-case name="extvardef-022">
      <description>Using external default variable in a function declared
before the variable. </description>
      <created by="David Graf" on="2011-12-05"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[
        declare function local:foo() {
          $x
        };
        declare variable $x external := 5;
        $y instance of xs:decimal
      ]]></test>
      <result>
        <assert-eq>5</assert-eq>
      </result>
   </test-case>

-- 
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, 24 January 2012 14:41:04 UTC