ballerina-lang
ballerina-lang copied to clipboard
`Method invocations are not yet supported within XML navigation expressions` error is emitted when xml navigation expression is used as a argument of a function invocatin.
trafficstars
Description:
public function main() {
xml c = xml `<elem>hello</elem>`;
xml x = 'xml:concat(c/*, "h");
}
Out:
ERROR [main.bal:(4:13,4:34)] method invocations are not yet supported within XML navigation expressions, use a grouping expression (parenthesis) if you intend to invoke the method on the result of the navigation expression.
Workaround is to wrapping the XML navigation expression within parenthesis. Steps to reproduce:
Affected Versions: SLP8 OS, DB, other environment details and versions:
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):