diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-19 17:29:29 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-19 17:29:29 +0800 |
commit | f131f1b530d0726ba66ad4c62f55fa0d59abc4e1 (patch) | |
tree | 46af0ea5c3fc90d7bd21c6b05f28a4ffc97c6fb0 /test/completion/common.lua | |
parent | 8b1c6ac771a3a1bcc938863235b31580ba32b4ee (diff) | |
download | lua-language-server-f131f1b530d0726ba66ad4c62f55fa0d59abc4e1.zip |
fix duplicate class in completion
Diffstat (limited to 'test/completion/common.lua')
-rw-r--r-- | test/completion/common.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua index 15e2cc2a..3b06d572 100644 --- a/test/completion/common.lua +++ b/test/completion/common.lua @@ -2695,3 +2695,31 @@ utf<??>'xxx' kind = define.CompletionItemKind.Field, } } + +TEST [[ +---@class AAA + +---@class AAA + +---@type AAA<??> +]] +{ + [1] = { + label = 'AAA', + kind = define.CompletionItemKind.Class, + } +} + +TEST [[ +---@class AAA + +---@class AAA + +---@class BBB: AAA<??> +]] +{ + [1] = { + label = 'AAA', + kind = define.CompletionItemKind.Class, + } +} |