Skip to content

for...in doesn't handle identifier initializer #710

Description

@ark120202
for (x in y) {}

Throws at

const variable = (statement.initializer as ts.VariableDeclarationList).declarations[0];

Expected Result:

for ____key in pairs(y) do
    x = ____key
end

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