summaryrefslogtreecommitdiff
path: root/test/hover
diff options
context:
space:
mode:
Diffstat (limited to 'test/hover')
-rw-r--r--test/hover/init.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 1b6b2231..7fec9254 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -1949,8 +1949,8 @@ x({}, <?function?> () end)
]]
TEST [[
----@overload fun(x, y):string
----@overload fun(x):number
+---@overload fun(x: number, y: number):string
+---@overload fun(x: number):number
---@return boolean
local function f() end
@@ -1964,8 +1964,8 @@ function f()
]]
TEST [[
----@overload fun(x, y):string
----@overload fun(x):number
+---@overload fun(x: number, y: number):string
+---@overload fun(x: number):number
---@return boolean
local function f() end
@@ -1974,12 +1974,12 @@ local n2 = <?f?>(0)
local n3 = f(0, 0)
]]
[[
-local f: fun(x: any):number
+local f: fun(x: number):number
]]
TEST [[
----@overload fun(x, y):string
----@overload fun(x):number
+---@overload fun(x: number, y: number):string
+---@overload fun(x: number):number
---@return boolean
local function f() end
@@ -1988,5 +1988,5 @@ local n2 = f(0)
local n3 = <?f?>(0, 0)
]]
[[
-local f: fun(x: any, y: any):string
+local f: fun(x: number, y: number):string
]]