Hello BaseX team !

I lost some time to detect an error in my code, and wonder if there is a
minor bug into the BaseX compiler. Here is the test

let $elt as element(*)*:= <universe id="yolo"></universe>
 for $d in (1 to 1)
 return
let $idd := $elt[d]/@id
return ($elt[$d]/@id,$idd)

output : id="yolo".

(Hence missing the second "yolo", because the correct query is : let $idd
:= $elt[$d]/@id)

However I can't figure out why the BaseX compiler ran this query ?
Shouldn't it refused the compilation and point out this error ?

Cheers,

Jean-Marc

Reply via email to