summaryrefslogtreecommitdiff
path: root/test/completion/common.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/completion/common.lua')
-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 90037c27..3ea02ed7 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -4413,3 +4413,24 @@ new 'A' {
kind = define.CompletionItemKind.Property,
}
}
+
+TEST [[
+---@class namespace.A
+---@overload fun(x: {id: string})
+
+---@generic T
+---@param t namespace.`T`
+---@return T
+local function new(t) end
+
+new 'A' {
+ <??>
+}
+]]
+{
+ {
+ label = 'id',
+ kind = define.CompletionItemKind.Property,
+ }
+}
+