Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Semicolons that separate expression statements are not preserved #28

Open
headjoe3 opened this issue Mar 15, 2019 · 0 comments
Open

Semicolons that separate expression statements are not preserved #28

headjoe3 opened this issue Mar 15, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@headjoe3
Copy link
Contributor

(function() print(1) end)();
(function() print(2) end)()

Transpiles to

(function() print(1) end)()
(function() print(2) end)()

In this instance, the semicolon would need to be preserved, or else the transpiled code will attempt to call the the result of print(1) with the argument (function() print(2) end)

@ayuka ayuka added the bug Something isn't working label Mar 31, 2019
@ayuka ayuka added this to the Initial Release milestone Mar 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants