summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-29 19:45:38 +0800
committersumneko <sumneko@hotmail.com>2019-04-29 19:45:38 +0800
commitf2444b757331ddf8df16a39a86b0ce8608338d77 (patch)
tree65617574b497e87886470e6b504584fe099cbcd5 /server/test
parent1ec748aaa45599cb4487105842a1ad4cb5e7a2b4 (diff)
downloadlua-language-server-f2444b757331ddf8df16a39a86b0ce8608338d77.zip
emmy.generic
Diffstat (limited to 'server/test')
-rw-r--r--server/test/hover/init.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua
index 4b4d0c25..24cf8789 100644
--- a/server/test/hover/init.lua
+++ b/server/test/hover/init.lua
@@ -608,3 +608,16 @@ end
function f()
-> A|B, C
]]
+
+--TEST [[
+-----@generic T
+-----@param x T
+-----@return T
+--local function f(x)
+--end
+--
+--local <?r?> = f(1)
+--]]
+--[[
+--local r: number = 1
+--]]