Got bit by this one:
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.
Got bit by this one:
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.