summaryrefslogtreecommitdiff
path: root/server/test/signature
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-15 10:18:39 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-15 10:18:39 +0800
commit36eafb0a228b1479556363b3cf160ad76fde0375 (patch)
tree93e3afd1da26c610bd1526234f6b3d5648c566c8 /server/test/signature
parenteae093e634ce411a016f493805fdceda6e525fdd (diff)
downloadlua-language-server-36eafb0a228b1479556363b3cf160ad76fde0375.zip
修正参数提示的BUG
Diffstat (limited to 'server/test/signature')
-rw-r--r--server/test/signature/init.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/server/test/signature/init.lua b/server/test/signature/init.lua
index 4110c585..0f16af91 100644
--- a/server/test/signature/init.lua
+++ b/server/test/signature/init.lua
@@ -49,6 +49,28 @@ x(@)
}
TEST [[
+local function x(a, b)
+end
+
+x(xxx@)
+]]
+{
+ label = "function x(a: any, b: any)",
+ arg = 'a: any'
+}
+
+TEST [[
+local function x(a, b)
+end
+
+x(xxx, @)
+]]
+{
+ label = "function x(a: any, b: any)",
+ arg = 'b: any'
+}
+
+TEST [[
function mt:f(a)
end