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 21432 - Static Typing in cbcl-minus-023
Summary: Static Typing in cbcl-minus-023
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Candidate Recommendation
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: 2013-03-29 09:40 UTC by Christian Gruen
Modified: 2013-04-11 22:53 UTC (History)
1 user (show)

See Also:


Attachments

Description Christian Gruen 2013-03-29 09:40:23 UTC
In this test..

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

.."FORG0001" should be added, or the day time duration should be rewritten to xs:dayTimeDuration("PT1H").
Comment 1 Tim Mills 2013-04-09 16:20:17 UTC
Fixed as suggested.  

Please mark as CLOSED if you agree with the resolution.  Otherwise, REOPEN.