summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-21 17:17:55 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-21 17:17:55 +0800
commit2adc24974ffa9b804e9b99a9b8f777a5220f7e89 (patch)
treede39927f252de2a9f12ef3c436264345beb9674d /test
parent59285a7f6e18ea67e65a7eca9f21b564a2edfa2e (diff)
downloadlua-language-server-2adc24974ffa9b804e9b99a9b8f777a5220f7e89.zip
fix #1354
Diffstat (limited to 'test')
-rw-r--r--test/diagnostics/common.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index 886f086a..34164a9a 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -2007,3 +2007,15 @@ local t
local _ <close> = t
]]
+
+TEST [[
+---@diagnostic disable: duplicate-set-field
+---@class A
+local m = {}
+
+function m.ff() end
+
+function m.ff(x) end
+
+m.ff(1)
+]]