teal-language/tl

Cannot use semicolon after return statement

Aperta

#976 aperta il 13 mag 2025

 (10 commenti) (0 reazioni) (0 assegnatari)Lua (156 fork)batch import
buggood first issue

Metriche repository

Star
 (2808 stelle)
Metriche merge PR
 (Merge medio 1g 6h) (1 PR mergiata in 30 g)

Descrizione

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.

Guida contributor