diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-21 02:04:22 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-21 02:04:22 +0800 |
commit | c2cf059ec21bb1076913bb99132d1f1cabf00d67 (patch) | |
tree | c082e15cda982afdb683196bdc9d20c8437e7e4f /meta/template | |
parent | fa3736b7532a0d64e20e77a667e2e83528e0a01d (diff) | |
download | lua-language-server-c2cf059ec21bb1076913bb99132d1f1cabf00d67.zip |
supports infer of callback parameter
Diffstat (limited to 'meta/template')
-rw-r--r-- | meta/template/table.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/template/table.lua b/meta/template/table.lua index 21c8b619..02288342 100644 --- a/meta/template/table.lua +++ b/meta/template/table.lua @@ -50,8 +50,9 @@ function table.pack(...) end function table.remove(list, pos) end ---#DES 'table.sort' ----@param list table ----@param comp fun(a: any, b: any):boolean +---@generic T +---@param list T[] +---@param comp fun(a: T, b: T):boolean function table.sort(list, comp) end ---@version >5.2, JIT |