From 5fd1d62add115ba4a77236e927f87359e4f37018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 8 Nov 2022 15:01:48 +0800 Subject: fix wrong diagnostics for `pcall` and `xpcall` --- meta/template/basic.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta/template/basic.lua') diff --git a/meta/template/basic.lua b/meta/template/basic.lua index 262075c7..b3eec153 100644 --- a/meta/template/basic.lua +++ b/meta/template/basic.lua @@ -158,7 +158,7 @@ function pairs(t) end ---#if VERSION == 5.1 and not JIT then ---@param f function ---#else ----@param f async fun() +---@param f async fun(...):... ---#end ---@param arg1? any ---@return boolean success @@ -273,7 +273,7 @@ function warn(message, ...) end function xpcall(f, err) end ---#else ---#DES 'xpcall>5.2' ----@param f async fun() +---@param f async fun(...):... ---@param msgh function ---@param arg1? any ---@return boolean success -- cgit v1.2.3