From 1a78d51e0580bfb19d07353bc7228bad37639839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 3 Dec 2018 20:29:02 +0800 Subject: =?UTF-8?q?=E6=8D=A2=E4=B8=AA=E6=96=B9=E6=B3=95=E5=AE=9E=E7=8E=B0m?= =?UTF-8?q?etatable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/test/definition/method.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'server/test/definition/method.lua') diff --git a/server/test/definition/method.lua b/server/test/definition/method.lua index 24e3b3b8..ac9e95e7 100644 --- a/server/test/definition/method.lua +++ b/server/test/definition/method.lua @@ -87,3 +87,16 @@ end local obj = setmetatable({ = 1 }, { __index = mt }) ]] + +TEST [[ +local mt +function mt:x() + self.a.() +end + +local obj = setmetatable({ + a = { + = 1, + } +}, { __index = mt }) +]] -- cgit v1.2.3