Skip to content

Hoisting #248

@tomblind

Description

@tomblind

Got bit by this one:

foo();
function foo() {}

Thanks to hoisting this works just fine in JS but fails in lua. Re-arranging the transpiled code seems like a very non-trivial thing to do but perhaps at least an error from tstl would be good since it can introduce some very confusing bugs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions