<?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>21432</bug_id>
          
          <creation_ts>2013-03-29 09:40:23 +0000</creation_ts>
          <short_desc>Static Typing in cbcl-minus-023</short_desc>
          <delta_ts>2013-04-11 22:53:32 +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>Windows NT</op_sys>
          <bug_status>CLOSED</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="Christian Gruen">christian.gruen</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>tim</cc>
          
          <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>85147</commentid>
    <comment_count>0</comment_count>
    <who name="Christian Gruen">christian.gruen</who>
    <bug_when>2013-03-29 09:40:23 +0000</bug_when>
    <thetext>In this test..

   &lt;test-case name=&quot;cbcl-minus-023&quot;&gt;
      &lt;description&gt; Test behaviour of minus operator when presented with an expression with static type duration &lt;/description&gt;
      &lt;created by=&quot;Oliver Hallam&quot; on=&quot;2010-02-26&quot;/&gt;
      &lt;dependency type=&quot;spec&quot; value=&quot;XQ10+&quot;/&gt;
      
      &lt;test&gt;declare function local:f($x) { if ($x) then xs:duration(&quot;P1D&quot;) else xs:dayTimeDuration(&quot;P1H&quot;) }; local:f(false()) - xs:time(&quot;12:00:00&quot;)&lt;/test&gt;
      &lt;result&gt;
         &lt;error code=&quot;XPTY0004&quot;/&gt;
      &lt;/result&gt;
   &lt;/test-case&gt;

..&quot;FORG0001&quot; should be added, or the day time duration should be rewritten to xs:dayTimeDuration(&quot;PT1H&quot;).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85791</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-04-09 16:20:17 +0000</bug_when>
    <thetext>Fixed as suggested.  

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

    </bug>

</bugzilla>