From 9585ac191f61d72dd198edec139b955276a53072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 8 Nov 2021 20:17:04 +0800 Subject: resolve #708 resolve #767 --- test/diagnostics/init.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test/diagnostics/init.lua') 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 +]] -- cgit v1.2.3