diff options
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) +]] |