summaryrefslogtreecommitdiff
path: root/test/diagnostics/duplicate-doc-alias.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/diagnostics/duplicate-doc-alias.lua')
-rw-r--r--test/diagnostics/duplicate-doc-alias.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/diagnostics/duplicate-doc-alias.lua b/test/diagnostics/duplicate-doc-alias.lua
new file mode 100644
index 00000000..0373fee9
--- /dev/null
+++ b/test/diagnostics/duplicate-doc-alias.lua
@@ -0,0 +1,10 @@
+TEST [[
+---@alias <!A!> integer
+---@alias <!A!> integer
+]]
+
+TEST [[
+---@class A
+---@class B
+---@alias <!A!> B
+]]