summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-24 17:33:32 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-24 17:33:32 +0800
commitaf0eba42be501bbbde95b15bcc8da191c21a9c1c (patch)
tree1613814ccf4de03249be581e93e82bc5079de225 /test
parent051df431b8f5bca83c129bba57960b371babb85d (diff)
downloadlua-language-server-af0eba42be501bbbde95b15bcc8da191c21a9c1c.zip
doc.type.function support vararg
Diffstat (limited to 'test')
-rw-r--r--test/hover/init.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 7ed794d1..cd3313cb 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -1418,3 +1418,11 @@ local c: C {
field: any,
}
]]
+
+TEST [[
+---@param callback fun(x: integer, ...)
+local function f(<?callback?>) end
+]]
+[[
+function (x: integer, ...)
+]]