summaryrefslogtreecommitdiff
path: root/test/diagnostics/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-08 20:17:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-08 20:17:04 +0800
commit9585ac191f61d72dd198edec139b955276a53072 (patch)
tree8497952d1ea937cae6a8e4959a1e39223d86fc94 /test/diagnostics/init.lua
parent90763c00c9960a8776e046c45a9f87d348ebc3d1 (diff)
downloadlua-language-server-9585ac191f61d72dd198edec139b955276a53072.zip
resolve #708 resolve #767
Diffstat (limited to 'test/diagnostics/init.lua')
-rw-r--r--test/diagnostics/init.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua
index 4fcf38ab..fa67d229 100644
--- a/test/diagnostics/init.lua
+++ b/test/diagnostics/init.lua
@@ -1489,3 +1489,20 @@ local _ = type(function () ---@async
return nil
end)
]]
+
+TEST [[
+---@param ... number
+local function f(...)
+ return ...
+end
+
+return f
+]]
+
+TEST [[
+---@type fun(...: string)
+]]
+
+TEST [[
+---@type fun(xxx, yyy, ...): boolean
+]]