diff options
Diffstat (limited to 'server/test/completion/init.lua')
-rw-r--r-- | server/test/completion/init.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index fee69e74..b649e1a8 100644 --- a/server/test/completion/init.lua +++ b/server/test/completion/init.lua @@ -1159,6 +1159,37 @@ f($) } TEST [[ +---@param x string | "'AAA'" | "'BBB'" | "'CCC'" +function f(x) +end + +f('$') +]] +{ + { + label = "AAA", + filterText = 'AAA', + kind = CompletionItemKind.EnumMember, + textEdit = EXISTS, + additionalTextEdits = EXISTS, + }, + { + label = "BBB", + filterText = 'BBB', + kind = CompletionItemKind.EnumMember, + textEdit = EXISTS, + additionalTextEdits = EXISTS, + }, + { + label = "CCC", + filterText = 'CCC', + kind = CompletionItemKind.EnumMember, + textEdit = EXISTS, + additionalTextEdits = EXISTS, + } +} + +TEST [[ ---@param x function | 'function () end' function f(x) end |