summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-26 17:01:37 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-26 17:01:37 +0800
commit2896a055dc7e8b8e1cf711a98b12ac633328d974 (patch)
tree53a6660c8c6fdaaf8023782351f1565c3987d44e /test/diagnostics
parent3020a6e5eb4d36b4d694b8248e1d4bb639bfe435 (diff)
downloadlua-language-server-2896a055dc7e8b8e1cf711a98b12ac633328d974.zip
fix `close-non-object`
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/common.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index 9d2deedd..53c7b975 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -333,13 +333,13 @@ TEST [[
local _ <close> = <!1!>
]]
---TEST [[
---local _ <close> = <!''!>
---]]
---
---TEST [[
---local c <close> = <!(function () return 1 end)()!>
---]]
+TEST [[
+local _ <close> = <!''!>
+]]
+
+TEST [[
+local c <close> = <!(function () return 1 end)()!>
+]]
config.get(nil, 'Lua.diagnostics.disable')['unused-local'] = true
TEST [[