summaryrefslogtreecommitdiff
path: root/test/diagnostics/duplicate-doc-param.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/diagnostics/duplicate-doc-param.lua')
-rw-r--r--test/diagnostics/duplicate-doc-param.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/diagnostics/duplicate-doc-param.lua b/test/diagnostics/duplicate-doc-param.lua
new file mode 100644
index 00000000..42eb73d3
--- /dev/null
+++ b/test/diagnostics/duplicate-doc-param.lua
@@ -0,0 +1,12 @@
+TEST [[
+---@class Class
+---@param <!x!> Class
+---@param y Class
+---@param <!x!> Class
+local function f(x, y)
+ return x, y
+end
+
+local _
+f(_, _)
+]]