summaryrefslogtreecommitdiff
path: root/test-beta/signature/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-16 14:56:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-16 14:56:35 +0800
commit5737d55897545813e1f84de8adde2a046d3904f7 (patch)
tree5ebfaa0b9b21d8496add05eb37e5d4af66f01b0f /test-beta/signature/init.lua
parent605842f4792b4f7503c20bc1d111f7fecc6bde9f (diff)
downloadlua-language-server-5737d55897545813e1f84de8adde2a046d3904f7.zip
完善参数提示
Diffstat (limited to 'test-beta/signature/init.lua')
-rw-r--r--test-beta/signature/init.lua12
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)