From 93bf979617ff781f8a2d28d0574a3d4b9e2c5253 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, 12 Nov 2020 15:09:53 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3doc=E6=8E=A8=E6=B5=8B=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-beta/hover/init.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test-beta') diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua index 55ce9845..912807ac 100644 --- a/test-beta/hover/init.lua +++ b/test-beta/hover/init.lua @@ -1324,3 +1324,16 @@ local [[ local t: string|'enum1'|'enum2' ]] + +TEST [[ +---@class c +t = {} + +---@overload fun() +function .f() end +]] +[[ +global t: c { + f: function, +} +]] -- cgit v1.2.3