summaryrefslogtreecommitdiff
path: root/test-beta/hover
diff options
context:
space:
mode:
Diffstat (limited to 'test-beta/hover')
-rw-r--r--test-beta/hover/init.lua13
1 files changed, 12 insertions, 1 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua
index feb574d4..3104c659 100644
--- a/test-beta/hover/init.lua
+++ b/test-beta/hover/init.lua
@@ -985,7 +985,17 @@ function f(x: <T>)
-> <T>
]]
-do return end
+TEST [[
+---@return number
+local function f()
+end
+
+local <?r?> = f()
+]]
+[[
+local r: number
+]]
+
TEST [[
---@generic T
---@param x T
@@ -999,6 +1009,7 @@ local <?r?> = f(1)
local r: integer
]]
+do return end
TEST [[
---@param x number
---@param y boolean