summaryrefslogtreecommitdiff
path: root/test/completion/common.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-19 17:29:29 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-19 17:29:29 +0800
commitf131f1b530d0726ba66ad4c62f55fa0d59abc4e1 (patch)
tree46af0ea5c3fc90d7bd21c6b05f28a4ffc97c6fb0 /test/completion/common.lua
parent8b1c6ac771a3a1bcc938863235b31580ba32b4ee (diff)
downloadlua-language-server-f131f1b530d0726ba66ad4c62f55fa0d59abc4e1.zip
fix duplicate class in completion
Diffstat (limited to 'test/completion/common.lua')
-rw-r--r--test/completion/common.lua28
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,
+ }
+}