diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-16 14:56:35 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-16 14:56:35 +0800 |
commit | 5737d55897545813e1f84de8adde2a046d3904f7 (patch) | |
tree | 5ebfaa0b9b21d8496add05eb37e5d4af66f01b0f /test-beta/signature/init.lua | |
parent | 605842f4792b4f7503c20bc1d111f7fecc6bde9f (diff) | |
download | lua-language-server-5737d55897545813e1f84de8adde2a046d3904f7.zip |
完善参数提示
Diffstat (limited to 'test-beta/signature/init.lua')
-rw-r--r-- | test-beta/signature/init.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test-beta/signature/init.lua b/test-beta/signature/init.lua index 400fea20..bd7ffe8d 100644 --- a/test-beta/signature/init.lua +++ b/test-beta/signature/init.lua @@ -111,10 +111,9 @@ TEST [[ ]] { label = [[ -function string:sub(i: integer [, j: integer(-1)]) - -> string +function string:sub(i: integer, j: integer) ]], - arg = {22, 31}, + arg = {21, 30}, } TEST [[ @@ -128,7 +127,12 @@ end f(1, 'string$') ]] -(nil) +{ + label = [[ +function f(a: any, b: any, c: any) +]], + arg = {20, 25}, +} TEST [[ pcall(function () $ end) |