Open ChristianGruen opened 1 month ago
Possibly related:
let $a := %basex:inline(0) fn($f) as element() { $f() }
return $a(fn() { <xml/> })
Expected: <xml/>
Returned: [XPTY0004] Cannot convert empty-sequence() to element(): ().
→ This one has been fixed by a recent commit.
Caused at runtime by tail-call optimizations:
Expected:
5000
Result:[XPTY0004] Cannot convert empty-sequence() to xs:integer: ().