Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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. #27803

Closed
rdhananjaya opened this issue Jan 12, 2021 · 0 comments
Assignees
Labels
Lang/XML XML related issues Priority/High Reason/Other None of the other reasons. Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug

Comments

@rdhananjaya
Copy link
Member

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):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Lang/XML XML related issues Priority/High Reason/Other None of the other reasons. Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug
Projects
Status: Done
Development

No branches or pull requests

5 participants