Skip to content

no table.unpack optimization when using cast to any[] #1143

@GlassBricks

Description

@GlassBricks

There probably shouldn't be a table.unpack when you cast parameters to any[] (or another array type). For instance:

https://typescripttolua.github.io/play/#code/FDBmFcDsGMBcEsD2kAEoCGMCeBhdAbfAHgDEUBTAD1nMgBMBnFACgDp30AnAcwYC4UmLAEoAvAD4h45hBgCSAGhTtWXXgIAKXdAFtyNTg1LjhAgEr7wnSABUsAB3LGA3sBTuUnS9bRRobdmY1JnQQyCwAbQBdYWFgAF8gA

Current workaround: make the function definition an overload and the implementation take any[] type as parameters

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions