diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-08-11 17:57:22 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-08-11 17:57:29 +0800 |
commit | 5e5a1b2ebb103625bbbb686ab31abc11a78e9d73 (patch) | |
tree | 8140d6f9c04a51476e558a9b7fa661a068d6c49a /test/diagnostics/redundant-parameter.lua | |
parent | cd370225fc4eaf6e2f6baadfb5a8501943c86783 (diff) | |
download | lua-language-server-5e5a1b2ebb103625bbbb686ab31abc11a78e9d73.zip |
cleanup tests
Diffstat (limited to 'test/diagnostics/redundant-parameter.lua')
-rw-r--r-- | test/diagnostics/redundant-parameter.lua | 13 |
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) +]] |