teal-language/tl

Cannot use semicolon after return statement

Open

#976 opened on May 13, 2025

View on GitHub
 (10 comments) (0 reactions) (0 assignees)Lua (63 forks)batch import
buggood first issue

Repository metrics

Stars
 (1,085 stars)
PR merge metrics
 (Avg merge 1d 6h) (1 merged PR in 30d)

Description

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