summaryrefslogtreecommitdiff
path: root/server/test/hover/init.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-05-05 21:27:34 +0800
committersumneko <sumneko@hotmail.com>2019-05-05 21:27:34 +0800
commitde0adfc8ee4561d7eb9c31e19fa5774ff7d999dd (patch)
tree1ce2b253a781a01d519a2ff6abb24d4d378c75b9 /server/test/hover/init.lua
parentc1902bfe0f61006bd9afae43c10ee6a25863e5f6 (diff)
downloadlua-language-server-de0adfc8ee4561d7eb9c31e19fa5774ff7d999dd.zip
emmyFunction
Diffstat (limited to 'server/test/hover/init.lua')
-rw-r--r--server/test/hover/init.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua
index baed3912..f31dfa03 100644
--- a/server/test/hover/init.lua
+++ b/server/test/hover/init.lua
@@ -730,3 +730,21 @@ local <?f?>
function f(x: number, y: number)
-> boolean
]]
+
+TEST [[
+---@type fun(x: number, y: number):boolean
+local f
+f(<?a?>)
+]]
+[[
+global a: number
+]]
+
+TEST [[
+---@type fun(x: number, y: number):boolean
+local f
+local <?r?> = f()
+]]
+[[
+local r: boolean
+]]