Skip to content

Expression as statements produce invalid lua #503

@tomblind

Description

@tomblind
"foobar";
1;

declare function foo(): number;
foo() + foo();

TS allows arbitrary expressions to be used as statements, but this is invalid in Lua. Lua only allows call expressions to be used as statements.

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