Skip to content

Complex destructuring patterns don't work in loops #770

@ark120202

Description

@ark120202

Playground

Currently value is just unpacked - https://github.com/TypeScriptToLua/TypeScriptToLua/blob/master/src/transformation/visitors/loops/for-of.ts#L33, but it should use the same logic as variable declaration does. For the same reason object destructuring is not supported currently.

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