diff options
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r-- | test/hover/init.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index 0cfb501b..52d31416 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1538,3 +1538,18 @@ local u: number { x: any, } ]] + +TEST [[ +---@generic K, V +---@param t table<K, V> +---@return K +---@return V +local function next(t) end + +---@type table<string, boolean> +local t +local k, v = next(<?t?>) +]] +[[ +local t: table<string, boolean> +]] |