teal-language/tl

Cannot use semicolon after return statement

Offen

#976 geöffnet am 13.05.2025

 (10 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Lua (160 Forks)batch import
buggood first issue

Repository-Metriken

Stars
 (2.810 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 1T 6h) (1 gemergte PR in 30 T)

Beschreibung

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.

Contributor Guide