Project

Profile

Help

Bug #6232

closed

Error message: "An empty sequence is not allowed as the result of a call to map"

Added by Christian Grün about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
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

Also available in: Atom PDF