Skip to content

Fix/dead code after break#1694

Merged
Perryvw merged 5 commits intoTypeScriptToLua:masterfrom
RealColdFry:fix/dead-code-after-break
Mar 28, 2026
Merged

Fix/dead code after break#1694
Perryvw merged 5 commits intoTypeScriptToLua:masterfrom
RealColdFry:fix/dead-code-after-break

Conversation

@RealColdFry
Copy link
Copy Markdown
Contributor

Fixes #1122

Strips dead code after break in the printer, matching existing return behavior. Dead code is a syntax error in Lua 5.0/5.1 and LuaJIT.

@Perryvw Perryvw merged commit 2bb18e1 into TypeScriptToLua:master Mar 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unreachable code should be stripped (after break statement)

2 participants