Actions
Bug #6232
closedError message: "An empty sequence is not allowed as the result of a call to map"
Start date:
2023-10-25
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java
Description
When running…
filter(1, map { })
…I get the misleading error message “An empty sequence is not allowed as the result of a call to map”. I would claim it’s even wrong, because map:get(map{}, 1)
or map {}?1
both return an empty sequence.
I assume the hidden message here is that the predicate function of fn:filter
must return a boolean value?
Please register to edit this issue
Actions