X Tutup
Skip to content

Unnessecary table.unpack when passing ... parameter to a function local variable #1047

@GlassBricks

Description

@GlassBricks

See here:
https://typescripttolua.github.io/play/#code/FAMwrgdgxgLglgewgAgG4EMBOWDmAVdAazghwAoA6K3AZwC5l0IBPAbQF0BKZAbwF9goSLEQoQCBAEZK1TDnqMWHbj2DI0WXAWKkZFWp2ACh0eEmTiEAJj20GTNl15rkUJDRgXkAXg3Y52iQ4jDTItnIKDso+AHxoCHAAJi4g4fKGAkA

When varargTaking is called directly, the ... is passed directly. However, when using a local variable with function type instead, a unnessecary table.unpack is generated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup