From eeb24f394050578dd575e6c9035230c0d51b2672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 6 Jul 2022 15:15:07 +0800 Subject: fix #1288 --- test/hover/init.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test') diff --git a/test/hover/init.lua b/test/hover/init.lua index acb779bf..476644fc 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -2074,3 +2074,20 @@ local [[ local f: fun():(x: number, y: boolean) ]] + +TEST [[ +---@class MyClass +local MyClass = { + a = 1 +} + +function MyClass:Test() + +end +]] +[[ +(self) self: MyClass { + Test: function, + a: integer = 1, +} +]] -- cgit v1.2.3