diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-07 14:10:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-11-07 14:10:50 +0800 |
commit | b175fd29848e5f09ae8eba6372966c85184d107f (patch) | |
tree | f8b84a500c6474019bc7b469d532b1af401c2153 /test | |
parent | 885013052b8ad1f5d736a26212fc5926b228c020 (diff) | |
download | lua-language-server-b175fd29848e5f09ae8eba6372966c85184d107f.zip |
fix
Diffstat (limited to 'test')
-rw-r--r-- | test/diagnostics/type-check.lua | 5 |
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') |