aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/using.lua
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2021-10-12 10:04:44 +0800
committerLi Jin <dragon-fly@qq.com>2021-10-12 10:04:44 +0800
commit60a979e224f26117f5be82bfca757a2483cef0fd (patch)
tree7c6af44f6dcada1f23979b820ba830251997b161 /spec/outputs/using.lua
parenta19b242cbaf53721b20a3163dd06f43e9ef2b487 (diff)
downloadyuescript-60a979e224f26117f5be82bfca757a2483cef0fd.tar.gz
yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.tar.bz2
yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.zip
fix test.
Diffstat (limited to 'spec/outputs/using.lua')
-rw-r--r--spec/outputs/using.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/outputs/using.lua b/spec/outputs/using.lua
new file mode 100644
index 0000000..6d0d888
--- /dev/null
+++ b/spec/outputs/using.lua
@@ -0,0 +1,23 @@
1local hello = "hello"
2local world = "world"
3local _
4_ = function()
5 local hello = 3223
6end
7_ = function(a)
8 local hello = 3223
9 a = 323
10end
11_ = function(a, b, c)
12 a, b, c = 1, 2, 3
13 local world = 12321
14end
15_ = function(a, e, f)
16 local b, c
17 a, b, c = 1, 2, 3
18 hello = 12321
19 local world = "yeah"
20end
21_ = function()
22 local hello = hello or 2
23end