summaryrefslogtreecommitdiff
path: root/test/completion
diff options
context:
space:
mode:
Diffstat (limited to 'test/completion')
-rw-r--r--test/completion/common.lua31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua
index f1100e36..1d7d414c 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -3699,6 +3699,37 @@ f(<??>)
}
TEST [[
+---@enum A
+ppp.fff = {
+ x = 1,
+ y = 'ss',
+}
+
+---@param x A
+local function f(x) end
+
+f(<??>)
+]]
+{
+ {
+ label = 'ppp.fff.x',
+ kind = define.CompletionItemKind.EnumMember,
+ },
+ {
+ label = 'ppp.fff.y',
+ kind = define.CompletionItemKind.EnumMember,
+ },
+ {
+ label = '1',
+ kind = define.CompletionItemKind.EnumMember,
+ },
+ {
+ label = '"ss"',
+ kind = define.CompletionItemKind.EnumMember,
+ },
+}
+
+TEST [[
--
<??>
]]