From ed64703ef9fec2b1c6736a0deb68bd567875a654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sun, 26 Jun 2022 00:11:55 +0800 Subject: #1207 supports `---@return boolean ...` --- meta/template/basic.lua | 2 +- meta/template/table.lua | 2 +- meta/template/utf8.lua | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'meta') diff --git a/meta/template/basic.lua b/meta/template/basic.lua index 6a89fb01..7afbf273 100644 --- a/meta/template/basic.lua +++ b/meta/template/basic.lua @@ -284,6 +284,6 @@ function xpcall(f, msgh, arg1, ...) end ---@param list T[] ---@param i? integer ---@param j? integer ----@return T +---@return T ... ---@nodiscard function unpack(list, i, j) end diff --git a/meta/template/table.lua b/meta/template/table.lua index b0a386c3..1cb2f56f 100644 --- a/meta/template/table.lua +++ b/meta/template/table.lua @@ -61,7 +61,7 @@ function table.sort(list, comp) end ---@param list T[] ---@param i? integer ---@param j? integer ----@return T +---@return T ... ---@nodiscard function table.unpack(list, i, j) end diff --git a/meta/template/utf8.lua b/meta/template/utf8.lua index a00a3238..1797a5e8 100644 --- a/meta/template/utf8.lua +++ b/meta/template/utf8.lua @@ -33,7 +33,7 @@ function utf8.codes(s, lax) end ---@param i? integer ---@param j? integer ---@return integer code ----@return ... +---@return integer ... ---@nodiscard function utf8.codepoint(s, i, j) end ---#else @@ -42,7 +42,7 @@ function utf8.codepoint(s, i, j) end ---@param j? integer ---@param lax? boolean ---@return integer code ----@return ... +---@return integer ... ---@nodiscard function utf8.codepoint(s, i, j, lax) end ---#end -- cgit v1.2.3