teal-language/tl

Cannot use semicolon after return statement

开放

#976 创建于 2025年5月13日

 (10 条评论) (0 个反应) (0 位负责人)Lua (156 个派生)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.

贡献者指南