summaryrefslogtreecommitdiff
path: root/server/test/diagnostics/init.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-05-14 16:21:44 +0800
committersumneko <sumneko@hotmail.com>2019-05-14 16:21:44 +0800
commitd5276f49eb7a0fa89b15ef7d014c155345fdb980 (patch)
tree3f87d3d24d15b7cd4ced875639898803bb881f83 /server/test/diagnostics/init.lua
parentb5a351cd77cb6f7ddde692557cf0c5049d5ffbac (diff)
downloadlua-language-server-d5276f49eb7a0fa89b15ef7d014c155345fdb980.zip
回调函数不检查参数数量
Diffstat (limited to 'server/test/diagnostics/init.lua')
-rw-r--r--server/test/diagnostics/init.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua
index cb842f71..eec4bf36 100644
--- a/server/test/diagnostics/init.lua
+++ b/server/test/diagnostics/init.lua
@@ -233,6 +233,13 @@ next({}, 1, <!2!>)
print(1, 2, 3, 4, 5)
]]
+TEST [[
+local function f(callback)
+ callback(1, 2, 3)
+end
+f(function () end)
+]]
+
--TEST [[
--local realTostring = tostring
--tostring = function () end