summaryrefslogtreecommitdiff
path: root/test/signature/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-24 20:57:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-24 20:57:50 +0800
commit55bc394b5c8cc41380ff7e26729e850ecadde7ed (patch)
tree4b598460756a7eb8a3d3454f4cffc939bc91de6c /test/signature/init.lua
parentbc0270a06a1017301ca96712b350c399537e63a6 (diff)
downloadlua-language-server-55bc394b5c8cc41380ff7e26729e850ecadde7ed.zip
fix #565
Diffstat (limited to 'test/signature/init.lua')
-rw-r--r--test/signature/init.lua45
1 files changed, 45 insertions, 0 deletions
diff --git a/test/signature/init.lua b/test/signature/init.lua
index 931a8d73..40fb33dc 100644
--- a/test/signature/init.lua
+++ b/test/signature/init.lua
@@ -242,3 +242,48 @@ function f(x: table<number, string>, y: any, z: any)
]],
arg = {12, 35},
}
+
+
+TEST [[
+local function x(a, b)
+end
+
+x( aaaa $, 2)
+]]
+{
+ label = "function x(a: any, b: any)",
+ arg = {12, 17},
+}
+
+TEST [[
+local function x(a, b)
+end
+
+x($ aaaa , 2)
+]]
+{
+ label = "function x(a: any, b: any)",
+ arg = {12, 17},
+}
+
+TEST [[
+local function x(a, b)
+end
+
+x(aaaa ,$ 2)
+]]
+{
+ label = "function x(a: any, b: any)",
+ arg = {20, 25},
+}
+
+TEST [[
+local function x(a, b)
+end
+
+x(aaaa , 2 $)
+]]
+{
+ label = "function x(a: any, b: any)",
+ arg = {20, 25},
+}