summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-22 01:41:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-22 01:41:16 +0800
commit7b3e7f4b0a62b7c9c3b895e89b4fe79bb8f350ba (patch)
treeee441dc6545127e650c6fcf435c96d33079ac177 /test/hover/init.lua
parentd1e977ca8a6d72673649282bcd1973b1d279a8a1 (diff)
downloadlua-language-server-7b3e7f4b0a62b7c9c3b895e89b4fe79bb8f350ba.zip
fix
Diffstat (limited to 'test/hover/init.lua')
-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
]]