From 4529b3118d10a82ba2e0cfa201bc380067c18212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 25 Jul 2022 23:47:55 +0800 Subject: fix #1370 --- test/crossfile/hover.lua | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'test/crossfile') diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua index d1148309..e8a718d4 100644 --- a/test/crossfile/hover.lua +++ b/test/crossfile/hover.lua @@ -1525,3 +1525,32 @@ TEST { } ```]] } + +TEST { + { + path = 'a.lua', + content = [[ + ---@enum + local t = + { + x = 1, + y = 2, + z = 3, + } + ]] + }, + hover = [[ +```lua +(enum) A +``` + +--- + +```lua +{ + x: integer = 1, + y: integer = 2, + z: integer = 3, +} +```]] +} -- cgit v1.2.3