summaryrefslogtreecommitdiff
path: root/server/test/hover
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-05-20 14:20:18 +0800
committersumneko <sumneko@hotmail.com>2019-05-20 14:20:18 +0800
commitaa80daf9c9349bf8a4a3b6d6d957f3e423c60720 (patch)
treee2c9222778e34b778cdd488b2875b8825259b4af /server/test/hover
parent44917f12bc6b38b68683dbeebdedc8fb479a4c00 (diff)
downloadlua-language-server-aa80daf9c9349bf8a4a3b6d6d957f3e423c60720.zip
#36 修正 EmmyParam 在查看函数时无效的问题
Diffstat (limited to 'server/test/hover')
-rw-r--r--server/test/hover/init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua
index f31dfa03..dfd6dc78 100644
--- a/server/test/hover/init.lua
+++ b/server/test/hover/init.lua
@@ -623,6 +623,16 @@ local r: number
]]
TEST [[
+---@param x number
+---@param y boolean
+local function <?f?>(x, y)
+end
+]]
+[[
+function f(x: number, y: boolean)
+]]
+
+TEST [[
---@vararg Class
local function f(...)
local _, <?x?> = ...