diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-16 10:17:27 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-16 10:17:27 +0800 |
commit | 780ab0ef7daeb7c8a1d11698275c80c1641ed5e5 (patch) | |
tree | 2ec93a6de56135e473b9e42629cbdbf9bdb139d4 /test-beta/signature/init.lua | |
parent | a7e9513115b5a80dd5555707c8bcd8cf2417af40 (diff) | |
download | lua-language-server-780ab0ef7daeb7c8a1d11698275c80c1641ed5e5.zip |
label去掉返回值;特殊支持不定参
Diffstat (limited to 'test-beta/signature/init.lua')
-rw-r--r-- | test-beta/signature/init.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test-beta/signature/init.lua b/test-beta/signature/init.lua index 281c3606..400fea20 100644 --- a/test-beta/signature/init.lua +++ b/test-beta/signature/init.lua @@ -83,6 +83,30 @@ mt:f($ } TEST [[ +local function x(a, b) + return 1 +end + +x($ +]] +{ + label = "function x(a: any, b: any)", + arg = {12, 17}, +} + +TEST [[ +local function x(a, ...) + return 1 +end + +x(1, 2, 3, $ +]] +{ + label = "function x(a: any, ...)", + arg = {20, 22}, +} + +TEST [[ (''):sub($ ]] { |