From 1e6b168fa6d7a4922205cd19519e01f25898017e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 8 Apr 2022 19:16:32 +0800 Subject: fix --- test/hover/init.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'test/hover/init.lua') diff --git a/test/hover/init.lua b/test/hover/init.lua index 4337c4a4..021746be 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1828,3 +1828,24 @@ local = t[#t] [[ local x: string = "x" ]] + +TEST [[ +local x = { + a = 1, + b = 2, + [1] = 10, +} + +local y = { + _ = x.a, + _ = x.b, + [1] = , +} +]] +[[ +local x: { + a: integer = 1, + b: integer = 2, + [1]: integer = 10, +} +]] -- cgit v1.2.3