<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>29584</bug_id>
          
          <creation_ts>2016-04-20 20:32:01 +0000</creation_ts>
          <short_desc>[QT3] () castable to list</short_desc>
          <delta_ts>2016-04-25 16:26:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Tim Mills">tim</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>125972</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-04-20 20:32:01 +0000</bug_when>
    <thetext>I believe the result of the following test case should be false, not true:

   &lt;test-case name=&quot;Castable-ListType-9&quot; covers-30=&quot;cast-to-list&quot;&gt;
       &lt;description&gt;Test castability of empty sequence to list type.&lt;/description&gt;
       &lt;created by=&quot;Tim Mills&quot; on=&quot;2016-04-11&quot;/&gt;
       &lt;environment ref=&quot;union-List-defined-Types&quot;/&gt;
       &lt;dependency type=&quot;spec&quot; value=&quot;XQ30+&quot;/&gt;
       &lt;dependency type=&quot;feature&quot; value=&quot;schemaImport&quot;/&gt;
       &lt;test&gt;&lt;![CDATA[
       import schema namespace s=&quot;http://www.w3.org/XQueryTest/unionListDefined&quot;;
        () castable as s:intListType1]]&gt;
       &lt;/test&gt;
       &lt;result&gt;&lt;assert-true /&gt;&lt;/result&gt;
   &lt;/test-case&gt;

The spec for castable to list says that the input must be a (single) string or untypedAtomic; it also says that an empty sequence is OK provided the type is written as T?.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126087</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-04-25 16:26:51 +0000</bug_when>
    <thetext>Fixed in CVS.

Please mark as CLOSED if you agree with the resolution.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>