summaryrefslogtreecommitdiff
path: root/test/completion/common.lua
diff options
context:
space:
mode:
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,
+ }
+}