<?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>3674</bug_id>
          
          <creation_ts>2006-09-08 09:11:28 +0000</creation_ts>
          <short_desc>Static typing of  1 to 1 eq 1 (K-RangeExpr-1)</short_desc>
          <delta_ts>2006-09-22 10:22:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>1.0</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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="Tim Mills">tim</reporter>
          <assigned_to name="Frans Englich">frans.englich</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>11506</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2006-09-08 09:11:28 +0000</bug_when>
    <thetext>K-RangeExpr-1 fails the static typing rules.

1 to 1 eq 1 = fs:to(1, 1) eq 1 = fs:eq(fs:to(1, 1), 1)

fs:to has return type xs:integer* and:

&quot;The static type of fs:to does not require any additional static typing rule, and is typed as a function call based on the above signature.&quot;

Under the typing rules of C.2 Mapping of Overloaded Internal Functions, fs:eq type checks correctly for inputs:

(xs:integer, xs:integer),
(xs:integer?, xs:integer),
(xs:integer, xs:integer?)

and not

(xs;integer*, xs:integer).

Therefore the test fails if the processor carries out static type checking.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11512</commentid>
    <comment_count>1</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2006-09-08 12:37:26 +0000</bug_when>
    <thetext>I&apos;ll add XPTY0004 as an additional baseline.


Frans
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11790</commentid>
    <comment_count>2</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2006-09-15 18:14:35 +0000</bug_when>
    <thetext>K-RangeExpr-1 was changed to also allow XPTY0004.

Feel free to verify this change. This is fixed in CVS, in XQTS_current.zip. For instruction to download this, see http://www.w3.org/XML/Query/test-suite/, section &quot;Accessing our Source Files&quot;. XQTS_current.zip resides in directory PublicPagesStagingArea/.

If the resolution is not satisfactory, re-open this report. Otherwise, if the resolution is acceptable, feel free to change status to CLOSED. Thanks for reporting!


Frans</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11953</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2006-09-22 10:22:17 +0000</bug_when>
    <thetext>Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>