aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-07-14 15:08:04 +0800
committerLi Jin <dragon-fly@qq.com>2022-07-14 15:08:04 +0800
commit9c1d7bca08a88254ac33d7df16fc0a48f34912f4 (patch)
tree0df3fff6ae34a026ee45cc70e1ba3c69470a14a2
parentf4147d5fea31438cfee3dc3781806a1a0b6c40c9 (diff)
downloadyuescript-9c1d7bca08a88254ac33d7df16fc0a48f34912f4.tar.gz
yuescript-9c1d7bca08a88254ac33d7df16fc0a48f34912f4.tar.bz2
yuescript-9c1d7bca08a88254ac33d7df16fc0a48f34912f4.zip
add missing generated codes.
-rw-r--r--spec/outputs/switch.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/outputs/switch.lua b/spec/outputs/switch.lua
index 7b413f8..a341e99 100644
--- a/spec/outputs/switch.lua
+++ b/spec/outputs/switch.lua
@@ -330,4 +330,22 @@ do
330 end 330 end
331 end 331 end
332end 332end
333do
334 do
335 local _exp_0 = y
336 local _tab_0 = "table" == type(_exp_0)
337 if _tab_0 then
338 local mt = (function()
339 local _obj_0 = _exp_0.x
340 if _obj_0 ~= nil then
341 return getmetatable(_obj_0)
342 end
343 return nil
344 end)()
345 if mt ~= nil then
346 print(mt)
347 end
348 end
349 end
350end
333return nil 351return nil