summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/hover/init.lua')
-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?>
]]