W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2006

[Bug 3829] Static typing of function declarations

From: <bugzilla@wiggum.w3.org>
Date: Wed, 13 Dec 2006 17:08:16 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1GuXaa-0004aL-CM@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3829





------- Comment #3 from nick@cbcl.co.uk  2006-12-13 17:08 -------
We are currently throwing a err:XPTY0018 "a type error if the result of the
last step in a path expression contains both nodes and atomic values." during
static type checking.

What happens is, because it has no return type, the function title type checks
with a return type item()*.

item()* can contain both nodes and anyAtomicTypes, so when we static type check
the path expression we throw the XPTY0018 as the type is not a node sequence or
an atomimc type sequence.

Looking through the spec again I can't at the moment find anything specifying
this check should we done during static typing rather than evaluation, so maybe
it is just us being too zealous in the static type checking.
Received on Wednesday, 13 December 2006 17:08:26 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:16 UTC