summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-12 16:04:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-12 16:17:17 +0800
commit9902665e2a4fa9b69726df2ccce997312750c2a7 (patch)
treef24f7f3c807b06d9e4a017de6d21c0b65a346b89 /test
parentfc46f7c495238c91e10feefca6656ac72634192c (diff)
downloadlua-language-server-9902665e2a4fa9b69726df2ccce997312750c2a7.zip
fix
Diffstat (limited to 'test')
-rw-r--r--test/diagnostics/type-check.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/diagnostics/type-check.lua b/test/diagnostics/type-check.lua
index 082d0b41..243b69ff 100644
--- a/test/diagnostics/type-check.lua
+++ b/test/diagnostics/type-check.lua
@@ -694,5 +694,12 @@ mt.x = 1
mt.x = nil
]]
+TEST [[
+---@type string[]
+local t
+
+<!t!> = 'xxx'
+]]
+
config.remove(nil, 'Lua.diagnostics.disable', 'unused-local')
config.remove(nil, 'Lua.diagnostics.disable', 'undefined-global')