diff options
author | Li Jin <dragon-fly@qq.com> | 2022-07-24 22:13:08 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-07-24 22:13:08 +0800 |
commit | 303834e1b1e6cd9cae64b66c2ae44dcd7185238f (patch) | |
tree | 519f6a1debcc5791d35e06dc5cbb1ce22f9cfd31 /spec/outputs/tables.lua | |
parent | eb367126bf3a4f5b0e51ccef93b7c7136bea170e (diff) | |
download | yuescript-303834e1b1e6cd9cae64b66c2ae44dcd7185238f.tar.gz yuescript-303834e1b1e6cd9cae64b66c2ae44dcd7185238f.tar.bz2 yuescript-303834e1b1e6cd9cae64b66c2ae44dcd7185238f.zip |
add option --target=5.1 to generate Lua 5.1 compatible codes. add const destructure. make import item const by default.
Diffstat (limited to 'spec/outputs/tables.lua')
-rw-r--r-- | spec/outputs/tables.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/outputs/tables.lua b/spec/outputs/tables.lua index 1d28a43..e9df1c4 100644 --- a/spec/outputs/tables.lua +++ b/spec/outputs/tables.lua | |||
@@ -187,18 +187,18 @@ k = { | |||
187 | ["hello"] = "world", | 187 | ["hello"] = "world", |
188 | ["one"] = "zone" | 188 | ["one"] = "zone" |
189 | } | 189 | } |
190 | local f = "one", { | 190 | local f1, f2, f3 = "one", { |
191 | ["two"] = three | 191 | ["two"] = three |
192 | }, "four" | 192 | }, "four" |
193 | f = { | 193 | f1, f2 = { |
194 | ["two"] = three | 194 | ["two"] = three |
195 | }, "four" | 195 | }, "four" |
196 | f = { | 196 | f1 = { |
197 | "one", | 197 | "one", |
198 | ["two"] = three, | 198 | ["two"] = three, |
199 | "four" | 199 | "four" |
200 | } | 200 | } |
201 | local j = "one", { | 201 | local j1, j2, j3, j4 = "one", { |
202 | ["two"] = three, | 202 | ["two"] = three, |
203 | ["four"] = five | 203 | ["four"] = five |
204 | }, 6, 7 | 204 | }, 6, 7 |