summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-26 12:54:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-26 12:54:27 +0800
commit6632a278360065a24081a85df23498b9b7bc838b (patch)
treea07da2a3934965d867e665118aa35c059e6f036c /test/diagnostics
parente644ee28154f2278c33a73f3fe27f626dd1198b1 (diff)
downloadlua-language-server-6632a278360065a24081a85df23498b9b7bc838b.zip
fix #1093
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/common.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index 66f85c05..06e95f39 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -352,6 +352,15 @@ local <!function f()
end!>
]]
+
+TEST [[
+local <!function test()
+end!>
+
+local <!function foo ()
+end!>
+]]
+
config.get(nil, 'Lua.diagnostics.disable')['unused-local'] = nil
TEST [[
local mt, x