diff options
Diffstat (limited to 'test-beta/hover/init.lua')
-rw-r--r-- | test-beta/hover/init.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua index 75750f78..e1c11f04 100644 --- a/test-beta/hover/init.lua +++ b/test-beta/hover/init.lua @@ -1222,6 +1222,19 @@ function f(x: boolean?) -> boolean? ]] +TEST [[ +---@param x number? +---@param y boolean? +---@return table?, string? +local function <?f?>(x, y) +end +]] +[[ +function f(x: number?, y: boolean?) + -> table? + 2. string? +]] + do return end TEST [[ ---@param x number {optional = 'after'} |