summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-05-21 10:21:28 +0800
committersumneko <sumneko@hotmail.com>2019-05-21 10:21:28 +0800
commit718622c49cde3af681a41b7b674db22ccccd3b72 (patch)
treec490c1be0bd9bbe86516fd6102b15a37faab7b36 /server/test
parent27ea26c59c2cb18947f92551495a0fc99c99bed1 (diff)
downloadlua-language-server-718622c49cde3af681a41b7b674db22ccccd3b72.zip
#38 修正特殊 EmmyType 无法穿透函数参数的bug
Diffstat (limited to 'server/test')
-rw-r--r--server/test/hover/init.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua
index dfd6dc78..e568335d 100644
--- a/server/test/hover/init.lua
+++ b/server/test/hover/init.lua
@@ -758,3 +758,14 @@ local <?r?> = f()
[[
local r: boolean
]]
+
+TEST [[
+---@param names string[]
+local function f(<?names?>)
+end
+]]
+[[
+local names: {
+ [*integer]: string,
+}
+]]