diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-08 20:17:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-08 20:17:04 +0800 |
commit | 9585ac191f61d72dd198edec139b955276a53072 (patch) | |
tree | 8497952d1ea937cae6a8e4959a1e39223d86fc94 /test/diagnostics | |
parent | 90763c00c9960a8776e046c45a9f87d348ebc3d1 (diff) | |
download | lua-language-server-9585ac191f61d72dd198edec139b955276a53072.zip |
resolve #708 resolve #767
Diffstat (limited to 'test/diagnostics')
-rw-r--r-- | test/diagnostics/init.lua | 17 |
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 +]] |