diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-28 19:28:54 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-28 19:28:54 +0800 |
commit | deac4582d38908c1281d4d5215b7b69ff8400dca (patch) | |
tree | 833da004bc6bd82dadb373bbc345224160ce0972 /test/hover | |
parent | 7e778b31476831864dff995ae3ae4e5f223c5726 (diff) | |
download | lua-language-server-deac4582d38908c1281d4d5215b7b69ff8400dca.zip |
parse `---@return ...` a `---@return ... unknown`
Diffstat (limited to 'test/hover')
-rw-r--r-- | test/hover/init.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index 9cdf2ed4..acb779bf 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -2042,6 +2042,16 @@ function f(...boolean) ]] TEST [[ +---@param ... boolean +---@return ... +local function <?f?>(...) end +]] +[[ +function f(...boolean) + -> ...unknown +]] + +TEST [[ ---@type fun():x: number local <?f?> ]] |