summaryrefslogtreecommitdiff
path: root/test/completion
diff options
context:
space:
mode:
Diffstat (limited to 'test/completion')
-rw-r--r--test/completion/init.lua29
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