diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-10-10 20:52:54 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-10-10 20:52:54 +0800 |
commit | 976e63df5340def77c363935f383da315ee5b5ab (patch) | |
tree | bbded94c09190219f8174d928333e4e25e934156 /server-beta/test/definition | |
parent | 8535713d22d4bfc1d02dea1b6fdc31324c61b760 (diff) | |
download | lua-language-server-976e63df5340def77c363935f383da315ee5b5ab.zip |
更新 __index 的支持
Diffstat (limited to 'server-beta/test/definition')
-rw-r--r-- | server-beta/test/definition/method.lua | 9 |
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 |