diff options
Diffstat (limited to 'test/completion/init.lua')
-rw-r--r-- | test/completion/init.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua index 9c87ab33..ea1cdfdb 100644 --- a/test/completion/init.lua +++ b/test/completion/init.lua @@ -2665,3 +2665,34 @@ t.$ }, } } + +TEST [[ +---@alias enum '"aaa"'|'"bbb"' + +---@param x enum +---@return enum +local function f(x) +end + +local r = f('$') +]] +{ + { + label = "'aaa'", + kind = define.CompletionItemKind.EnumMember, + textEdit = { + newText = "'aaa'", + start = 103, + finish = 104, + }, + }, + { + label = "'bbb'", + kind = define.CompletionItemKind.EnumMember, + textEdit = { + newText = "'bbb'", + start = 103, + finish = 104, + }, + }, +} |