diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-19 15:44:55 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-19 15:44:55 +0800 |
commit | 4d90c2dc34a1394668f7f5dc75cd5dfa87373767 (patch) | |
tree | 77e199b54067479bc3215d42595f35a6c0a4745b /test/signature | |
parent | cbcdd7e20745bb7c2d6cce9f1ea970c9d54d6910 (diff) | |
download | lua-language-server-4d90c2dc34a1394668f7f5dc75cd5dfa87373767.zip |
fix #607
Diffstat (limited to 'test/signature')
-rw-r--r-- | test/signature/init.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/signature/init.lua b/test/signature/init.lua index 40fb33dc..27051310 100644 --- a/test/signature/init.lua +++ b/test/signature/init.lua @@ -287,3 +287,20 @@ x(aaaa , 2 $) label = "function x(a: any, b: any)", arg = {20, 25}, } + +TEST [[ +local fooC + +---test callback +---@param callback fun(x:number, s:string):nil @callback +---@param par number @par +function fooC(callback, par) end + +fooC(function (x, s) + +end,$) +]] +{ + label = 'function fooC(callback: fun(x: number, s: string):nil, par: number)', + arg = {56, 66}, +} |