summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-07 14:10:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-07 14:10:50 +0800
commitb175fd29848e5f09ae8eba6372966c85184d107f (patch)
treef8b84a500c6474019bc7b469d532b1af401c2153 /test
parent885013052b8ad1f5d736a26212fc5926b228c020 (diff)
downloadlua-language-server-b175fd29848e5f09ae8eba6372966c85184d107f.zip
fix
Diffstat (limited to 'test')
-rw-r--r--test/diagnostics/type-check.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/diagnostics/type-check.lua b/test/diagnostics/type-check.lua
index 5f10856d..ff75f3cc 100644
--- a/test/diagnostics/type-check.lua
+++ b/test/diagnostics/type-check.lua
@@ -956,6 +956,11 @@ TEST [[
local t = { <!1!>, <!2!>, <!3!> }
]]
+TEST [[
+---@type boolean[]
+local t = { true, false, nil }
+]]
+
config.remove(nil, 'Lua.diagnostics.disable', 'unused-local')
config.remove(nil, 'Lua.diagnostics.disable', 'unused-function')
config.remove(nil, 'Lua.diagnostics.disable', 'undefined-global')