diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-01-23 16:05:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-01-23 16:05:30 +0800 |
commit | 5597c4449838ad4bfae4c2791c0778e9b7fd08ab (patch) | |
tree | 8d9c56fcd45df3e8ad9745f63cdee1c208e6e284 /test-beta/hover/init.lua | |
parent | 6b4ac4345b65bdf0a26f5f59feaa8353df3a10b1 (diff) | |
download | lua-language-server-5597c4449838ad4bfae4c2791c0778e9b7fd08ab.zip |
暂不支持跨越函数调用的函数field
Diffstat (limited to 'test-beta/hover/init.lua')
-rw-r--r-- | test-beta/hover/init.lua | 52 |
1 files changed, 35 insertions, 17 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua index 3919ca80..68bf3e3b 100644 --- a/test-beta/hover/init.lua +++ b/test-beta/hover/init.lua @@ -296,23 +296,41 @@ function x() -> any ]] -TEST [[ -local mt = {} -mt.__index = mt - -function mt:add(a, b) -end - -local function init() - return setmetatable({}, mt) -end - -local t = init() -t:<?add?>() -]] -[[ -function mt:add(a: any, b: any) -]] +-- TODO 暂不支持跨越函数调用的函数field +--TEST [[ +--local mt = {} +-- +--function mt:add(a, b) +--end +-- +--local function init() +-- return mt +--end +-- +--local t = init() +--t:<?add?>() +--]] +--[[ +--function mt:add(a: any, b: any) +--]] +-- +--TEST [[ +--local mt = {} +--mt.__index = mt +-- +--function mt:add(a, b) +--end +-- +--local function init() +-- return setmetatable({}, mt) +--end +-- +--local t = init() +--t:<?add?>() +--]] +--[[ +--function mt:add(a: any, b: any) +--]] TEST [[ local <?t?> = - 1000 |