summaryrefslogtreecommitdiff
path: root/server/test/type_inference
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-14 11:23:40 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-14 11:23:40 +0800
commit1a0230bba4a1116691a0a2c8ca79d4396f56dfb0 (patch)
treec0861c17eb16168e005e8b6d4a7d76b95114c7a9 /server/test/type_inference
parentd41b3171483c54d6e5f4a2ce31d232cd19415dda (diff)
downloadlua-language-server-1a0230bba4a1116691a0a2c8ca79d4396f56dfb0.zip
支持传递不定参数
Diffstat (limited to 'server/test/type_inference')
-rw-r--r--server/test/type_inference/init.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/test/type_inference/init.lua b/server/test/type_inference/init.lua
index 33e368ea..d9a23013 100644
--- a/server/test/type_inference/init.lua
+++ b/server/test/type_inference/init.lua
@@ -158,3 +158,10 @@ end
local b
x(<?b?>)
]]
+
+TEST 'number' [[
+local function x(a, ...)
+ local _, <?b?>, _ = ...
+end
+x(nil, 'xx', 1, true)
+]]