diff options
Diffstat (limited to 'test/completion/init.lua')
-rw-r--r-- | test/completion/init.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua index 38d85132..9848bc09 100644 --- a/test/completion/init.lua +++ b/test/completion/init.lua @@ -1759,6 +1759,35 @@ f('$') } TEST [[ +---this is +---a multi line +---comment +---@alias XXXX +---comment 1 +---comment 1 +---| '1' +---comment 2 +---comment 2 +---| '2' + +---@param x XXXX +local function f(x) +end + +f($) +]] +{ + { + label = '1', + kind = define.CompletionItemKind.EnumMember, + }, + { + label = '2', + kind = define.CompletionItemKind.EnumMember, + }, +} + +TEST [[ ---@param x function | 'function () end' function f(x) end |