summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-04-18 15:03:36 +0800
committer最萌小汐 <sumneko@hotmail.com>2024-04-18 15:03:36 +0800
commit8b442ab6296435ae3a949b70b0abac02d75b8741 (patch)
tree34ac5a8b116a56de4da81060c3474dc68c13e209 /test/diagnostics
parent1b3a03e310e2751edbd49709a2bba1e34caeb9f2 (diff)
downloadlua-language-server-8b442ab6296435ae3a949b70b0abac02d75b8741.zip
如果有 merge 属性,则跳过 `duplicate-doc-alias` 检查
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/duplicate-doc-alias.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/diagnostics/duplicate-doc-alias.lua b/test/diagnostics/duplicate-doc-alias.lua
index 0373fee9..5a208e3e 100644
--- a/test/diagnostics/duplicate-doc-alias.lua
+++ b/test/diagnostics/duplicate-doc-alias.lua
@@ -8,3 +8,14 @@ TEST [[
---@class B
---@alias <!A!> B
]]
+
+TEST [[
+---@alias A integer
+---@alias(merge) A integer
+
+---@enum B
+---@enum(merge) B
+
+---@enum(key) C
+---@enum(key, merge) C
+]]