diff options
Diffstat (limited to 'test/completion/common.lua')
-rw-r--r-- | test/completion/common.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua index 7de1c325..90037c27 100644 --- a/test/completion/common.lua +++ b/test/completion/common.lua @@ -4393,3 +4393,23 @@ f { kind = define.CompletionItemKind.Property, }, } + +TEST [[ +---@class A +---@overload fun(x: {id: string}) + +---@generic T +---@param t `T` +---@return T +local function new(t) end + +new 'A' { + <??> +} +]] +{ + { + label = 'id', + kind = define.CompletionItemKind.Property, + } +} |