summaryrefslogtreecommitdiff
path: root/test/completion
diff options
context:
space:
mode:
Diffstat (limited to 'test/completion')
-rw-r--r--test/completion/common.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua
index 7c383fe4..27431000 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -3396,3 +3396,25 @@ end
kind = define.CompletionItemKind.Variable,
},
}
+
+TEST [[
+---@class A
+---@field xxx 'aaa'|'bbb'
+
+---@type A
+local t = {
+ xxx = '<??>
+}
+]]
+{
+ {
+ label = "'aaa'",
+ kind = define.CompletionItemKind.EnumMember,
+ textEdit = EXISTS,
+ },
+ {
+ label = "'bbb'",
+ kind = define.CompletionItemKind.EnumMember,
+ textEdit = EXISTS,
+ },
+}