diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-14 11:28:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-14 11:28:41 +0800 |
commit | 1b0a19c73d9685cac645f4466ea651376b389f87 (patch) | |
tree | f23094d3d91e88033a4f04bc58bab5038683f02c /server/test/type_inference | |
parent | 1a0230bba4a1116691a0a2c8ca79d4396f56dfb0 (diff) | |
download | lua-language-server-1b0a19c73d9685cac645f4466ea651376b389f87.zip |
函数参数有不定参时,准备10个额外参数
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 d9a23013..bb5add6e 100644 --- a/server/test/type_inference/init.lua +++ b/server/test/type_inference/init.lua @@ -165,3 +165,10 @@ local function x(a, ...) end x(nil, 'xx', 1, true) ]] + +TEST 'number' [[ +local function x(a, ...) + return true, 'ss', ... +end +local _, _, _, <?b?>, _ = x(nil, true, 1, 'yy') +]] |