summaryrefslogtreecommitdiff
path: root/server-beta/test/definition
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-10-10 20:52:54 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-10-10 20:52:54 +0800
commit976e63df5340def77c363935f383da315ee5b5ab (patch)
treebbded94c09190219f8174d928333e4e25e934156 /server-beta/test/definition
parent8535713d22d4bfc1d02dea1b6fdc31324c61b760 (diff)
downloadlua-language-server-976e63df5340def77c363935f383da315ee5b5ab.zip
更新 __index 的支持
Diffstat (limited to 'server-beta/test/definition')
-rw-r--r--server-beta/test/definition/method.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/server-beta/test/definition/method.lua b/server-beta/test/definition/method.lua
index 58785fe1..70bd3860 100644
--- a/server-beta/test/definition/method.lua
+++ b/server-beta/test/definition/method.lua
@@ -51,6 +51,15 @@ obj:<?method1?>()
TEST [[
local mt
+function mt:<!method1!>()
+end
+
+setmetatable(api, { __index = mt })
+api:<?method1?>()
+]]
+
+TEST [[
+local mt
local api
function mt:<!method1!>()
end