From 8ed72a93bc27d86b4a4b5e5f87e279d8644a39a3 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, 7 Nov 2022 17:48:47 +0800 Subject: fix #1672 --- test/hover/init.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'test/hover') diff --git a/test/hover/init.lua b/test/hover/init.lua index 974f87db..4ce2de8c 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1668,7 +1668,7 @@ TEST [[ local ]] [[ -local t: { +local t: { x: string, y: number, z: boolean } { x: string, y: number, z: boolean, @@ -2403,3 +2403,15 @@ TEST [[ [[ (field) A.x: number ]] + +TEST [[ +---@type { [string]: string }[] +local t + +print(.foo) +]] +[[ +local t: { [string]: string }[] { + foo: unknown, +} +]] -- cgit v1.2.3