This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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>
Bug fixed. Thanks to David Graf
Confirmed fixed. Thanks.