diff options
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 |