diff options
author | Li Jin <dragon-fly@qq.com> | 2020-06-30 12:15:25 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-06-30 12:15:25 +0800 |
commit | 7682305156719aad1397d9eb63e97ecdb8393316 (patch) | |
tree | 824c0e1965b88985d740e63448b1b399665fb977 /spec | |
parent | 20df8a965a99593653c9047b7565a29331138ee6 (diff) | |
download | yuescript-7682305156719aad1397d9eb63e97ecdb8393316.tar.gz yuescript-7682305156719aad1397d9eb63e97ecdb8393316.tar.bz2 yuescript-7682305156719aad1397d9eb63e97ecdb8393316.zip |
fix issue when declaring multiple variables with attribute.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/inputs/attrib.moon | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/inputs/attrib.moon b/spec/inputs/attrib.moon index a5fa376..bc1e67e 100644 --- a/spec/inputs/attrib.moon +++ b/spec/inputs/attrib.moon | |||
@@ -1,6 +1,9 @@ | |||
1 | do | 1 | do |
2 | close a = setmetatable {},__close:=> print "closed" | 2 | close a, b = setmetatable {},__close:=> print "closed" |
3 | const a = 123 | 3 | const c, d = 123, 'abc' |
4 | |||
5 | close a, b | ||
6 | const c, d | ||
4 | 7 | ||
5 | do | 8 | do |
6 | close v = if flag | 9 | close v = if flag |