RE: ACTION A-617-01 Jonathan to bring discussion of bug 29119 to the mailing list

Abel wrote:

>> Castable is not a problem, it could always return false, ditto for instance of,
>> typeswitch can simply not match.
>
> Except for, surprisingly:
>
> let $e as xs:error := xs:error(1)
> return $e castable as xs:error

Since I've been playing with this one implementation, let's see what it does with that example ....

error: Cannot convert the supplied value to the required union type

Perhaps we need to give implementers more guidance?  Maybe we can add this example to the test suite too?

Jonathan

Received on Tuesday, 29 September 2015 12:32:59 UTC