summaryrefslogtreecommitdiff
path: root/test/diagnostics/redundant-parameter.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-08-11 17:57:22 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-08-11 17:57:29 +0800
commit5e5a1b2ebb103625bbbb686ab31abc11a78e9d73 (patch)
tree8140d6f9c04a51476e558a9b7fa661a068d6c49a /test/diagnostics/redundant-parameter.lua
parentcd370225fc4eaf6e2f6baadfb5a8501943c86783 (diff)
downloadlua-language-server-5e5a1b2ebb103625bbbb686ab31abc11a78e9d73.zip
cleanup tests
Diffstat (limited to 'test/diagnostics/redundant-parameter.lua')
-rw-r--r--test/diagnostics/redundant-parameter.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/diagnostics/redundant-parameter.lua b/test/diagnostics/redundant-parameter.lua
index 3bbb50f6..fabe3340 100644
--- a/test/diagnostics/redundant-parameter.lua
+++ b/test/diagnostics/redundant-parameter.lua
@@ -199,3 +199,16 @@ local function foo(x) end
foo(f())
]]
+
+TEST [[
+---@meta
+---@diagnostic disable: duplicate-set-field
+---@class A
+local m = {}
+
+function m.ff() end
+
+function m.ff(x) end
+
+m.ff(1)
+]]