teal-language/tl

Cannot use semicolon after return statement

オープン

#976 opened on 2025/05/13

 (10 件のコメント) (0 件のリアクション) (0 人の担当者)Lua (156 件のフォーク)batch import
buggood first issue

Repository metrics

Stars
 (2,808 個のスター)
PR merge metrics
 (平均マージ 1d 6h) (30d で 1 merged 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.

コントリビューターガイド