summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-28 03:03:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-28 03:03:00 +0800
commitf3019c63409b7bdadb0b7ecedfd3b90a0b29397b (patch)
tree8e146b317d3dccbbf2df5d180f60c8b79e9b3e6c /test
parent4774c8ce50f0c971f9e9efde44c083c606f3105a (diff)
downloadlua-language-server-f3019c63409b7bdadb0b7ecedfd3b90a0b29397b.zip
supports `---@return ...`
Diffstat (limited to 'test')
-rw-r--r--test/diagnostics/common.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index 5e65b410..de2481a6 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -1727,6 +1727,13 @@ function F()
end
]]
+TEST [[
+---@return ...
+function F()
+ return
+end
+]]
+
do return end
TEST [[
---@return number