Skip to content

Codegen for string interpolation needs to use wrap the concatenation in parentheses #320

Description

@refi64

This

"a" / "#{b}.c"

compiles to:

"a" / tostring(b) .. ".c"

which is evaluated as:

("a" / tostring(b)) .. ".c"

This is different precedence than one would think at first glance. It should be:

"a" / (tostring(b) .. ".c")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions