summaryrefslogtreecommitdiff
path: root/test/hover
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-28 19:28:54 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-28 19:28:54 +0800
commitdeac4582d38908c1281d4d5215b7b69ff8400dca (patch)
tree833da004bc6bd82dadb373bbc345224160ce0972 /test/hover
parent7e778b31476831864dff995ae3ae4e5f223c5726 (diff)
downloadlua-language-server-deac4582d38908c1281d4d5215b7b69ff8400dca.zip
parse `---@return ...` a `---@return ... unknown`
Diffstat (limited to 'test/hover')
-rw-r--r--test/hover/init.lua10
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?>
]]