diff options
Diffstat (limited to 'server/test/completion/init.lua')
-rw-r--r-- | server/test/completion/init.lua | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index 560f6fa4..0f4b27d3 100644 --- a/server/test/completion/init.lua +++ b/server/test/completion/init.lua @@ -784,3 +784,43 @@ TEST [[ kind = CompletionItemKind.Class, }, } + +TEST [[ +---@class abc +local abcd +---@type a$ +]] +{ + { + label = 'abc', + kind = CompletionItemKind.Class, + }, +} + +TEST [[ +---@class abc +local abcd +---@type $ +]] +{ + { + label = 'abc', + kind = CompletionItemKind.Class, + }, +} + +TEST [[ +---@class abc +local abcd +---@type xxx|$ +]] +{ + { + label = 'abc', + kind = CompletionItemKind.Class, + }, + { + label = 'xxx', + kind = CompletionItemKind.Class, + }, +} |