diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-14 11:23:40 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-14 11:23:40 +0800 |
commit | 1a0230bba4a1116691a0a2c8ca79d4396f56dfb0 (patch) | |
tree | c0861c17eb16168e005e8b6d4a7d76b95114c7a9 /server/test/type_inference | |
parent | d41b3171483c54d6e5f4a2ce31d232cd19415dda (diff) | |
download | lua-language-server-1a0230bba4a1116691a0a2c8ca79d4396f56dfb0.zip |
支持传递不定参数
Diffstat (limited to 'server/test/type_inference')
-rw-r--r-- | server/test/type_inference/init.lua | 7 |
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) +]] |