diff options
Diffstat (limited to 'spec/outputs/assign.lua')
-rw-r--r-- | spec/outputs/assign.lua | 37 |
1 files changed, 30 insertions, 7 deletions
diff --git a/spec/outputs/assign.lua b/spec/outputs/assign.lua index 162a563..89c5f8a 100644 --- a/spec/outputs/assign.lua +++ b/spec/outputs/assign.lua | |||
@@ -36,17 +36,15 @@ local x | |||
36 | do | 36 | do |
37 | local f = getHandler() | 37 | local f = getHandler() |
38 | if f then | 38 | if f then |
39 | do | 39 | x = ((function() |
40 | f() | 40 | f() |
41 | x = 123 | 41 | return 123 |
42 | end | 42 | end)()) |
43 | end | 43 | end |
44 | end | 44 | end |
45 | local _anon_func_0 = function(print) | 45 | local _anon_func_0 = function(print) |
46 | do | 46 | print(123) |
47 | print(123) | 47 | return { } |
48 | return { } | ||
49 | end | ||
50 | end | 48 | end |
51 | return _(function() | 49 | return _(function() |
52 | setmetatable(a, _anon_func_0(print)) | 50 | setmetatable(a, _anon_func_0(print)) |
@@ -181,5 +179,30 @@ return _(function() | |||
181 | local b = val | 179 | local b = val |
182 | local c = val | 180 | local c = val |
183 | end | 181 | end |
182 | do | ||
183 | local a = a .. "abc" | ||
184 | a = a // 2 | ||
185 | a = a or def | ||
186 | a = a and false | ||
187 | a = a >> 10 | ||
188 | a = a << 10 | ||
189 | local _obj_0 = a.b | ||
190 | if _obj_0.c == nil then | ||
191 | _obj_0.c = 123 | ||
192 | end | ||
193 | local _obj_1 = a.b | ||
194 | _obj_1.c = _obj_1.c + 1 | ||
195 | local _obj_2 = a.b | ||
196 | _obj_2.c = _obj_2.c - 2 | ||
197 | local _obj_3 = a.b | ||
198 | _obj_3.c = _obj_3.c * 3 | ||
199 | local _obj_4 = a.b | ||
200 | _obj_4.c = _obj_4.c / 4 | ||
201 | local _obj_5 = a.b | ||
202 | _obj_5.c = _obj_5.c % 5 | ||
203 | a = a & 6 | ||
204 | a = a | 7 | ||
205 | a = a ^ 8 | ||
206 | end | ||
184 | return nil | 207 | return nil |
185 | end) | 208 | end) |