From cd6ac072254b8583a4b8d7f8a973977b7f054766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 25 Feb 2021 15:30:58 +0800 Subject: improve hover of `table` --- test/hover/init.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/hover') 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 +---@return K +---@return V +local function next(t) end + +---@type table +local t +local k, v = next() +]] +[[ +local t: table +]] -- cgit v1.2.3