RumbleDB/rumble

Inline function with empty body is not working

Closed this issue · 1 comments

@mstevan
test-set: prod/ForClause.xml
test-cases: FunctionCall-045 to 47

@team
Inline function with empty body is not working - it should be allowed from XQuery 3.1

Input:
let $f := function($x) {}
return $f(2)

Output:
There was an error.

Code: [XPST0003] (this code can be looked up in the documentation and specifications).

Location information: file:/Users/mstevan/Documents/rumble-test-suite/:LINE:4:COLUMN:6:

Parser failed.

Expected output:
Empty sequence

All tests are passing. At the moment, there are no other tests crashing because of fix