diff options
Diffstat (limited to 'test/diagnostics/init.lua')
-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 +]] |