diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-09 21:11:00 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-09 21:11:00 +0800 |
commit | 6446cf30edaf099d338859b9eb858d2a1058e542 (patch) | |
tree | b6af0054092359d84c09563eb189436a5ce65fd4 /test-beta/hover | |
parent | 19e05519b9bd0ec913e4b19913fb5f8288102021 (diff) | |
download | lua-language-server-6446cf30edaf099d338859b9eb858d2a1058e542.zip |
return 支持命名
Diffstat (limited to 'test-beta/hover')
-rw-r--r-- | test-beta/hover/init.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua index ef48535d..3d42e318 100644 --- a/test-beta/hover/init.lua +++ b/test-beta/hover/init.lua @@ -1244,6 +1244,17 @@ function f(x: number?, y: boolean?) ]] TEST [[ +---@return table first, string second? +local function <?f?>(x, y) +end +]] +[[ +function f(x: any, y: any) + -> first: table + 2. second: string? +]] + +TEST [[ ---@class Class ---@field x number ---@field y number |