From 6f0e8df7934b9c41aac83a6c0b4b0f50a9b50871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 15 Nov 2022 11:28:00 +0800 Subject: fix #1698 --- test/completion/common.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'test/completion') diff --git a/test/completion/common.lua b/test/completion/common.lua index b73543fb..7591617e 100644 --- a/test/completion/common.lua +++ b/test/completion/common.lua @@ -4030,3 +4030,28 @@ local t = { kind = define.CompletionItemKind.Function, } } + +TEST [[ +---@type table +local x = { + a = 1, + b = 2, + c = 3 +} + +x. +]] +{ + { + label = 'a', + kind = define.CompletionItemKind.Enum, + }, + { + label = 'b', + kind = define.CompletionItemKind.Enum, + }, + { + label = 'c', + kind = define.CompletionItemKind.Enum, + }, +} -- cgit v1.2.3