This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15692 - [QT3TS] extvardef-022
Summary: [QT3TS] extvardef-022
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Member-only Editors Drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-24 14:41 UTC by Tim Mills
Modified: 2012-05-28 12:08 UTC (History)
2 users (show)

See Also:


Attachments

Description Tim Mills 2012-01-24 14:41:02 UTC
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>
Comment 1 O'Neil Delpratt 2012-05-28 09:50:21 UTC
Bug fixed. Thanks to David Graf
Comment 2 Tim Mills 2012-05-28 12:08:23 UTC
Confirmed fixed.  Thanks.