aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/global.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/global.lua
parenta19b242cbaf53721b20a3163dd06f43e9ef2b487 (diff)
downloadyuescript-60a979e224f26117f5be82bfca757a2483cef0fd.tar.gz
yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.tar.bz2
yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.zip
fix test.
Diffstat (limited to 'spec/outputs/global.lua')
-rw-r--r--spec/outputs/global.lua89
1 files changed, 89 insertions, 0 deletions
diff --git a/spec/outputs/global.lua b/spec/outputs/global.lua
new file mode 100644
index 0000000..1c9a3cf
--- /dev/null
+++ b/spec/outputs/global.lua
@@ -0,0 +1,89 @@
1do
2 a, b, c = 223, 343
3 cool = "dad"
4end
5do
6 do
7 local _class_0
8 local _base_0 = {
9 umm = "cool"
10 }
11 _base_0.__index = _base_0
12 _class_0 = setmetatable({
13 __init = function() end,
14 __base = _base_0,
15 __name = "Something"
16 }, {
17 __index = _base_0,
18 __call = function(cls, ...)
19 local _self_0 = setmetatable({ }, _base_0)
20 cls.__init(_self_0, ...)
21 return _self_0
22 end
23 })
24 _base_0.__class = _class_0
25 Something = _class_0
26 end
27end
28do
29 local d
30 a, b, c, d = "hello"
31end
32do
33 local What
34 if this then
35 What = 232
36 else
37 What = 4343
38 end
39 local another = 3434
40 Another = 7890
41 if inner then
42 local Yeah = "10000"
43 end
44 if this then
45 What = 232
46 else
47 What = 4343
48 end
49end
50do
51 if this then
52 What = 232
53 else
54 What = 4343
55 end
56 x, y, z = 1, 2, 3
57 y = function()
58 local hallo = 3434
59 end
60 do
61 local _with_0 = tmp
62 local j = 2000
63 end
64end
65do
66 x = 3434
67 if y then
68 x = 10
69 end
70end
71do
72 if y then
73 local x = 10
74 end
75 x = 3434
76end
77do
78 do
79 k = 1212
80 do
81 local h = 100
82 end
83 y = function()
84 local h = 100
85 k = 100
86 end
87 end
88 local h = 100
89end