summaryrefslogtreecommitdiff
path: root/test/signature/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-04-06 11:42:08 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-04-06 11:42:08 +0800
commit65d80d31d4b679bb95eed8f002be7cf82ca18c94 (patch)
tree86afb8b50a114476782fbc99d657a376b9a50811 /test/signature/init.lua
parentdec0117d74e7856fa9950aba7d3fb6647be29079 (diff)
downloadlua-language-server-65d80d31d4b679bb95eed8f002be7cf82ca18c94.zip
fix #483
Diffstat (limited to 'test/signature/init.lua')
-rw-r--r--test/signature/init.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/signature/init.lua b/test/signature/init.lua
index 372709e3..931a8d73 100644
--- a/test/signature/init.lua
+++ b/test/signature/init.lua
@@ -227,3 +227,18 @@ function m.f(self: table)
]],
arg = {14, 24},
}
+
+TEST [[
+---@alias nnn table<number, string>
+
+---@param x nnn
+local function f(x, y, z) end
+
+f($)
+]]
+{
+ label = [[
+function f(x: table<number, string>, y: any, z: any)
+]],
+ arg = {12, 35},
+}