diff options
author | Li Jin <dragon-fly@qq.com> | 2021-03-09 22:36:59 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-03-09 22:36:59 +0800 |
commit | 3eedd027bddc1ad9099d647e83ae4a83589db191 (patch) | |
tree | d35819801bb14d06b89e7bc74ff31caa768cebc8 /spec | |
parent | e4f55032f27c0085c041c67a55af7ceec6d776f5 (diff) | |
download | yuescript-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.yue | 4 |
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 | ||
94 | do | ||
95 | local * | ||
96 | x = a or b | ||
97 | |||
94 | g = 2323 -- test if anything leaked | 98 | g = 2323 -- test if anything leaked |