lunar icon indicating copy to clipboard operation
lunar copied to clipboard

Semicolons that separate expression statements are not preserved

Open headjoe3 opened this issue 5 years ago • 0 comments

(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)

headjoe3 avatar Mar 15 '19 02:03 headjoe3