Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Hoisting causes invalid code #944

Copy link
Copy link
@Perryvw

Description

@Perryvw
Issue body actions

The following code:

function foo() {
    function bar() {
        console.log(x)
    }
    let x: undefined;
}

Is transpiled to invalid lua syntax:

function foo(self)
    local x
    local function bar(self)
        print(x)
    end
    x = 
end

Playground link

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.