summaryrefslogtreecommitdiff
path: root/test/signature
diff options
context:
space:
mode:
Diffstat (limited to 'test/signature')
-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},
+}