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 3674 - Static typing of 1 to 1 eq 1 (K-RangeExpr-1)
Summary: Static typing of 1 to 1 eq 1 (K-RangeExpr-1)
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 1.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Frans Englich
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-08 09:11 UTC by Tim Mills
Modified: 2006-09-22 10:22 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2006-09-08 09:11:28 UTC
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:

"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."

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.
Comment 1 Frans Englich 2006-09-08 12:37:26 UTC
I'll add XPTY0004 as an additional baseline.


Frans
Comment 2 Frans Englich 2006-09-15 18:14:35 UTC
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 "Accessing our Source Files". 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
Comment 3 Tim Mills 2006-09-22 10:22:17 UTC
Thanks.