diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-20 21:08:35 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-20 21:08:35 +0800 |
commit | 58df10c5d5957b8437e76e271f7c7c1a41aca105 (patch) | |
tree | 44a5822a95b4f9ffb9a1fe026472b08b60115b42 /test | |
parent | 5f564a8ba866ab83f12da38b2f3c56002ce6bace (diff) | |
download | lua-language-server-58df10c5d5957b8437e76e271f7c7c1a41aca105.zip |
stash
Diffstat (limited to 'test')
-rw-r--r-- | test/diagnostics/type-check.lua | 6 |
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') |