aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2021-03-09 22:36:59 +0800
committerLi Jin <dragon-fly@qq.com>2021-03-09 22:36:59 +0800
commit3eedd027bddc1ad9099d647e83ae4a83589db191 (patch)
treed35819801bb14d06b89e7bc74ff31caa768cebc8 /spec
parente4f55032f27c0085c041c67a55af7ceec6d776f5 (diff)
downloadyuescript-3eedd027bddc1ad9099d647e83ae4a83589db191.tar.gz
yuescript-3eedd027bddc1ad9099d647e83ae4a83589db191.tar.bz2
yuescript-3eedd027bddc1ad9099d647e83ae4a83589db191.zip
fix an issue with local statement.
Diffstat (limited to 'spec')
-rw-r--r--spec/inputs/local.yue4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/inputs/local.yue b/spec/inputs/local.yue
index 33251a9..8e04742 100644
--- a/spec/inputs/local.yue
+++ b/spec/inputs/local.yue
@@ -91,4 +91,8 @@ do
91 -- this generates a nil value in the body 91 -- this generates a nil value in the body
92 for a in *{} do _ = a 92 for a in *{} do _ = a
93 93
94do
95 local *
96 x = a or b
97
94g = 2323 -- test if anything leaked 98g = 2323 -- test if anything leaked