Skip to content

Commit 5fd1d62

Browse files
committed
fix wrong diagnostics for pcall and xpcall
1 parent 8c1e542 commit 5fd1d62

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# changelog
22

3+
## 3.6.1
4+
* `FIX` wrong diagnostics for `pcall` and `xpcall`
5+
36
## 3.6.0
47
`2022-11-8`
58
* `NEW` supports `private`/`protected`/`public`/`package`

meta/template/basic.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ function pairs(t) end
158158
---#if VERSION == 5.1 and not JIT then
159159
---@param f function
160160
---#else
161-
---@param f async fun()
161+
---@param f async fun(...):...
162162
---#end
163163
---@param arg1? any
164164
---@return boolean success
@@ -273,7 +273,7 @@ function warn(message, ...) end
273273
function xpcall(f, err) end
274274
---#else
275275
---#DES 'xpcall>5.2'
276-
---@param f async fun()
276+
---@param f async fun(...):...
277277
---@param msgh function
278278
---@param arg1? any
279279
---@return boolean success

0 commit comments

Comments
 (0)