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

Parameter declaration inside string interpolation is not visible in another string literal within expression #75

Open
danchanka opened this issue Jan 18, 2023 · 0 comments

Comments

@danchanka
Copy link
Collaborator

Examples:

test(INTEGER i) = 'test' + i;
plus_test = '${test(INTEGER i)}' + '${test(i)}'; // error
override_test = OVERRIDE '${test(INTEGER i)}', '${test(i)}'; // error

Parameter i is not visible in the second part of expression when it's in different literal. There is no problem when they are inside one literal:

concat_test = '${test(INTEGER i)} ${test(i)}'; // ok!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant