diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-09 23:55:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-11-09 23:55:02 +0800 |
commit | 63168b71c091c154c8fdd65e9360755c15395fb7 (patch) | |
tree | 3b977b93831d6b452cd37af2631bac7ae2c78733 /test | |
parent | 0eec0d93a672e61a8880e91be5bc76802669fbc5 (diff) | |
download | lua-language-server-63168b71c091c154c8fdd65e9360755c15395fb7.zip |
fix #1680
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 ff2eddea..d04a2f5e 100644 --- a/test/diagnostics/type-check.lua +++ b/test/diagnostics/type-check.lua @@ -1114,6 +1114,11 @@ local a, b = foo(function() end) ]] +TEST [[ +---@type string|string[]|string[][] +local t = {{'a'}} +]] + config.remove(nil, 'Lua.diagnostics.disable', 'unused-local') config.remove(nil, 'Lua.diagnostics.disable', 'unused-function') config.remove(nil, 'Lua.diagnostics.disable', 'undefined-global') |