Skip to content

Indexing MultiReturn return value leads to incorrect Lua #960

@Perryvw

Description

@Perryvw

For example:

function func() {
    return $multi(1,2,3);
}

print(func()[1])

Causes func()[1] to be translated to func()[2], which is not correct, instead it should be something like ({ func() })[2].

Reported here: #821 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions