summaryrefslogtreecommitdiff
path: root/server/test/definition/method.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-07 11:28:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-07 11:28:15 +0800
commit3ccf8b1b0e1048ee9056c610829d49679df6ac3b (patch)
tree773c10db34ca02a404fb67cd8a390e024f4cec56 /server/test/definition/method.lua
parent3eaa1ac1e6731f595f892e6b96dbfe4c5c42fc75 (diff)
downloadlua-language-server-3ccf8b1b0e1048ee9056c610829d49679df6ac3b.zip
支持重新赋值
Diffstat (limited to 'server/test/definition/method.lua')
-rw-r--r--server/test/definition/method.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/test/definition/method.lua b/server/test/definition/method.lua
index ac9e95e7..05820e97 100644
--- a/server/test/definition/method.lua
+++ b/server/test/definition/method.lua
@@ -100,3 +100,14 @@ local obj = setmetatable({
}
}, { __index = mt })
]]
+
+TEST [[
+local sm = setmetatable
+local mt
+mt.__index = mt
+function mt:<!method1!>()
+end
+
+local obj = sm({}, mt)
+obj:<?method1?>()
+]]