summaryrefslogtreecommitdiff
path: root/test-beta/hover/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test-beta/hover/init.lua')
-rw-r--r--test-beta/hover/init.lua15
1 files changed, 13 insertions, 2 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua
index fa1edfa3..471ad2ce 100644
--- a/test-beta/hover/init.lua
+++ b/test-beta/hover/init.lua
@@ -1130,7 +1130,7 @@ TEST [[
local <?f?>
]]
[[
-function (x: number, y: number)
+function f(x: number, y: number)
-> boolean
]]
@@ -1159,7 +1159,7 @@ local t = {f = f}
t:<?f?>()
]]
[[
-function (a: any, b: any)
+function f(a: any, b: any)
]]
TEST [[
@@ -1198,6 +1198,17 @@ local <?x?> = f()
local x: integer
]]
+TEST [[
+---@overload fun(y: boolean)
+---@param x number
+---@param y boolean
+---@param z string
+function <?f?>(x, y, z) end
+]]
+[=[
+function f(x: number, y: boolean, z: string)
+]=]
+
do return end
TEST [[
---@param x number {optional = 'after'}