diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-07 14:24:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-11-07 14:24:41 +0800 |
commit | b1e0cdbeb13656f1fcd6cb2d45b8095e5b511457 (patch) | |
tree | 6e40bc32795439f263c4d7067562581a739f656b /test/diagnostics/type-check.lua | |
parent | b175fd29848e5f09ae8eba6372966c85184d107f (diff) | |
download | lua-language-server-b1e0cdbeb13656f1fcd6cb2d45b8095e5b511457.zip |
fix again
Diffstat (limited to 'test/diagnostics/type-check.lua')
-rw-r--r-- | test/diagnostics/type-check.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/diagnostics/type-check.lua b/test/diagnostics/type-check.lua index ff75f3cc..81cb1050 100644 --- a/test/diagnostics/type-check.lua +++ b/test/diagnostics/type-check.lua @@ -961,6 +961,14 @@ TEST [[ local t = { true, false, nil } ]] +TEST [[ +---@type boolean|nil +local x + +---@type boolean[] +local t = { true, false, x } +]] + config.remove(nil, 'Lua.diagnostics.disable', 'unused-local') config.remove(nil, 'Lua.diagnostics.disable', 'unused-function') config.remove(nil, 'Lua.diagnostics.disable', 'undefined-global') |