summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/completion/common.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua
index 7591617e..bf8aca3f 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -4055,3 +4055,24 @@ x.<??>
kind = define.CompletionItemKind.Enum,
},
}
+
+TEST [[
+---@param x {damage: integer, count: integer, health:integer}
+local function f(x) end
+
+f {<??>}
+]]
+{
+ {
+ label = 'count',
+ kind = define.CompletionItemKind.Property,
+ },
+ {
+ label = 'damage',
+ kind = define.CompletionItemKind.Property,
+ },
+ {
+ label = 'health',
+ kind = define.CompletionItemKind.Property,
+ },
+}