summaryrefslogtreecommitdiff
path: root/test/definition/set.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/definition/set.lua')
-rw-r--r--test/definition/set.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/definition/set.lua b/test/definition/set.lua
index 4cbb5926..2e48e490 100644
--- a/test/definition/set.lua
+++ b/test/definition/set.lua
@@ -2,3 +2,29 @@ TEST [[
<!x!> = 1
<?x?> = 1
]]
+
+TEST [[
+do
+ <!global!> = 1
+end
+<?global?> = 1
+]]
+
+TEST [[
+<!x!> = 1
+do
+ local x = 1
+end
+<?x?> = 1
+]]
+
+TEST [[
+x = 1
+do
+ local <!x!> = 1
+ do
+ x = 2
+ end
+ <?x?> = 1
+end
+]]