summaryrefslogtreecommitdiff
path: root/test/completion
diff options
context:
space:
mode:
Diffstat (limited to 'test/completion')
-rw-r--r--test/completion/common.lua25
1 files changed, 25 insertions, 0 deletions
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<string, integer>
+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,
+ },
+}