diff options
Diffstat (limited to 'testes')
-rw-r--r-- | testes/closure.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testes/closure.lua b/testes/closure.lua index de1b54ec..07149ef3 100644 --- a/testes/closure.lua +++ b/testes/closure.lua | |||
@@ -3,6 +3,14 @@ | |||
3 | 3 | ||
4 | print "testing closures" | 4 | print "testing closures" |
5 | 5 | ||
6 | do -- bug in 5.4.7 | ||
7 | _ENV[true] = 10 | ||
8 | local function aux () return _ENV[1 < 2] end | ||
9 | assert(aux() == 10) | ||
10 | _ENV[true] = nil | ||
11 | end | ||
12 | |||
13 | |||
6 | local A,B = 0,{g=10} | 14 | local A,B = 0,{g=10} |
7 | local function f(x) | 15 | local function f(x) |
8 | local a = {} | 16 | local a = {} |