summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-20 21:08:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-20 21:08:35 +0800
commit58df10c5d5957b8437e76e271f7c7c1a41aca105 (patch)
tree44a5822a95b4f9ffb9a1fe026472b08b60115b42 /test
parent5f564a8ba866ab83f12da38b2f3c56002ce6bace (diff)
downloadlua-language-server-58df10c5d5957b8437e76e271f7c7c1a41aca105.zip
stash
Diffstat (limited to 'test')
-rw-r--r--test/diagnostics/type-check.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/diagnostics/type-check.lua b/test/diagnostics/type-check.lua
index 295fb32d..56d034b6 100644
--- a/test/diagnostics/type-check.lua
+++ b/test/diagnostics/type-check.lua
@@ -254,5 +254,11 @@ local t = {
}
]]
+TEST [[
+---@type boolean[]
+local t = {}
+
+t[5] = nil
+]]
config.remove(nil, 'Lua.diagnostics.disable', 'unused-local')
config.remove(nil, 'Lua.diagnostics.disable', 'undefined-global')