teal-language/tl

Cannot use semicolon after return statement

開放

#976 建立於 2025年5月13日

 (10 則留言) (0 個反應) (0 位負責人)Lua (160 個分叉)batch import
buggood first issue

倉庫指標

星標
 (2,810 顆星)
PR 合併指標
 (平均合併 1天 6小時) (30 天內合併 1 個 PR)

描述

This is not a major bug, but rather a non-intuitive situation.

local function test()
    return;
end             -- return must be the last statement of its block

Some folks coming from the C world complained about this.

貢獻者指南