teal-language/tl

Cannot use semicolon after return statement

Ouverte

#976 ouverte le 13 mai 2025

 (10 commentaires) (0 réaction) (0 personne assignée)Lua (159 forks)batch import
buggood first issue

Métriques du dépôt

Stars
 (2 809 étoiles)
Métriques de merge PR
 (Merge moyen 1j 6h) (1 PR mergée en 30 j)

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.

Guide contributeur