aboutsummaryrefslogtreecommitdiff
path: root/testes/locals.lua
diff options
context:
space:
mode:
Diffstat (limited to 'testes/locals.lua')
-rw-r--r--testes/locals.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/testes/locals.lua b/testes/locals.lua
index 14e49a7c..20ecae4b 100644
--- a/testes/locals.lua
+++ b/testes/locals.lua
@@ -173,6 +173,15 @@ end
173assert(x==20) 173assert(x==20)
174 174
175 175
176-- tests for to-be-closed variables
177do
178 local scoped x = 3
179 local a
180 local scoped y = 5
181 assert(x == 3 and y == 5)
182end
183
184
176print('OK') 185print('OK')
177 186
178return 5,f 187return 5,f