From 9c1d7bca08a88254ac33d7df16fc0a48f34912f4 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 14 Jul 2022 15:08:04 +0800 Subject: add missing generated codes. --- spec/outputs/switch.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'spec') 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 end end end +do + do + local _exp_0 = y + local _tab_0 = "table" == type(_exp_0) + if _tab_0 then + local mt = (function() + local _obj_0 = _exp_0.x + if _obj_0 ~= nil then + return getmetatable(_obj_0) + end + return nil + end)() + if mt ~= nil then + print(mt) + end + end + end +end return nil -- cgit v1.2.3-55-g6feb