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.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua
index e568335d..cff6af65 100644
--- a/server/test/hover/init.lua
+++ b/server/test/hover/init.lua
@@ -769,3 +769,30 @@ local names: {
[*integer]: string,
}
]]
+
+TEST [[
+---@return any
+function <?f?>()
+ ---@type integer
+ local a
+ return a
+end
+]]
+[[
+function f()
+ -> any
+]]
+
+TEST [[
+---@return any
+function f()
+ ---@type integer
+ local a
+ return a
+end
+
+local <?x?> = f()
+]]
+[[
+local x: any
+]]