diff options
Diffstat (limited to 'test/completion')
-rw-r--r-- | test/completion/init.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua index 236403da..b42cd15b 100644 --- a/test/completion/init.lua +++ b/test/completion/init.lua @@ -2349,3 +2349,27 @@ f(1, { kind = define.CompletionItemKind.Property, } } + +TEST [[ +---@class C +---@field x number +---@field y number + +---@vararg C +local function f(x, ...) +end + +f(1, {}, {}, { + $ +}) +]] +{ + { + label = 'x', + kind = define.CompletionItemKind.Property, + }, + { + label = 'y', + kind = define.CompletionItemKind.Property, + } +} |