summaryrefslogtreecommitdiff
path: root/server/test/hover/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/test/hover/init.lua')
-rw-r--r--server/test/hover/init.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua
index 1c4809a6..baed3912 100644
--- a/server/test/hover/init.lua
+++ b/server/test/hover/init.lua
@@ -721,3 +721,12 @@ end
[[
local k: *ClassA
]]
+
+TEST [[
+---@type fun(x: number, y: number):boolean
+local <?f?>
+]]
+[[
+function f(x: number, y: number)
+ -> boolean
+]]