From 9be846d86c494e08d376aa465e8269796176765a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sun, 6 Nov 2022 22:58:11 +0800 Subject: type check: check the fields in table resolve #1434 --- test/hover/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/hover') diff --git a/test/hover/init.lua b/test/hover/init.lua index 780c1da8..974f87db 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -420,7 +420,7 @@ local t: { [1]: integer = 2, [true]: integer = 3, [5.5]: integer = 4, - b: integer = 7, + ["b"]: integer = 7, ["012"]: integer = 8, } ]] @@ -1714,11 +1714,11 @@ local = { local t: { x: string = "e", y: string = "f", - z: string = "g", + ["z"]: string = "g", + [10]: string = "d", [1]: string = "a", [2]: string = "b", [3]: string = "c"|"h", - [10]: string = "d", } ]] -- cgit v1.2.3