diff options
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/hover/init.lua | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua index 87b4cc99..b9bcc0fc 100644 --- a/server/test/hover/init.lua +++ b/server/test/hover/init.lua @@ -850,8 +850,8 @@ function f([x: number [, y: boolean], z: string]) ]=] TEST [[ ----@return string {name = 'key'} ----@return string {name = 'value'} +---@return string key +---@return string value function <?f?>() end ]] [=[ @@ -860,9 +860,9 @@ function f() ]=] TEST [[ ----@return {name = 'x', optional = 'after'} ----@return string {name = 'y', optional = 'self'} ----@return string {name = 'z'} +---@return any x {optional = 'after'} +---@return string y {optional = 'self'} +---@return string z function <?f?>() end ]] [=[ @@ -871,9 +871,6 @@ function f() ]=] TEST [[ ----@return {name = 'x', optional = 'after'} ----@return string {name = 'y', optional = 'self'} ----@return string {name = 'z'} function f() return function (a, b) end |