member accessor on object raises XPTY0004
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
High
|
Markos Zaharioudakis |
Bug Description
The following query raises [err:XPTY0004]: ~NoTypePromotio
let $obj :=
{
"glossary": {
"title": "example glossary",
"GlossDiv": {
}
}
}
}
}
return $obj("glossary"
Changed in zorba: | |
milestone: | none → 2.2 |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
By the way, you have not added a member-selector function for pairs.