summaryrefslogtreecommitdiff
path: root/test/signature/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-19 15:44:55 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-19 15:44:55 +0800
commit4d90c2dc34a1394668f7f5dc75cd5dfa87373767 (patch)
tree77e199b54067479bc3215d42595f35a6c0a4745b /test/signature/init.lua
parentcbcdd7e20745bb7c2d6cce9f1ea970c9d54d6910 (diff)
downloadlua-language-server-4d90c2dc34a1394668f7f5dc75cd5dfa87373767.zip
fix #607
Diffstat (limited to 'test/signature/init.lua')
-rw-r--r--test/signature/init.lua17
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},
+}