diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-12-04 15:58:32 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-12-04 15:58:32 +0800 |
commit | 96e499f4c62d7e444c74a4afebfd02211f3f9c16 (patch) | |
tree | a140dc162f2164b925ea1a529911abddb0113909 /test-beta/references | |
parent | 33ca6151e44074754373a1eeebbd5f53e92f4fae (diff) | |
download | lua-language-server-96e499f4c62d7e444c74a4afebfd02211f3f9c16.zip |
暂时这么支持特殊call
Diffstat (limited to 'test-beta/references')
-rw-r--r-- | test-beta/references/init.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test-beta/references/init.lua b/test-beta/references/init.lua index 4cd21e2b..4a122b7a 100644 --- a/test-beta/references/init.lua +++ b/test-beta/references/init.lua @@ -177,6 +177,21 @@ end local <!y!> = f()() ]] +TEST [[ +local mt = {} +mt.__index = mt + +function mt:<!add!>(a, b) +end + +local function init() + return setmetatable({}, mt) +end + +local t = init() +t:<?add?>() +]] + --TEST [[ -----@class <!Class!> -----@type <?Class?> |