Skip to content

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

@danchanka

Description

@danchanka

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions