summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-09 23:55:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-09 23:55:02 +0800
commit63168b71c091c154c8fdd65e9360755c15395fb7 (patch)
tree3b977b93831d6b452cd37af2631bac7ae2c78733 /test
parent0eec0d93a672e61a8880e91be5bc76802669fbc5 (diff)
downloadlua-language-server-63168b71c091c154c8fdd65e9360755c15395fb7.zip
fix #1680
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 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')