summaryrefslogtreecommitdiff
path: root/test/diagnostics/type-check.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-10-17 14:54:14 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-10-17 14:54:14 +0800
commit3bdd74aa30a6175f1bbf973559241f99eb563dfe (patch)
tree1f357550d5d99dc2872d4df5f11f93fb396798df /test/diagnostics/type-check.lua
parent2638eeba70bf47ddd7ac5eec60141f7514135e4b (diff)
downloadlua-language-server-3bdd74aa30a6175f1bbf973559241f99eb563dfe.zip
fix #1637
Diffstat (limited to 'test/diagnostics/type-check.lua')
-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 a938f14c..bdba855b 100644
--- a/test/diagnostics/type-check.lua
+++ b/test/diagnostics/type-check.lua
@@ -834,6 +834,13 @@ local function f(x)
end
]]
+TEST [[
+---@alias test boolean
+
+---@type test
+local <!test!> = 4
+]]
+
config.remove(nil, 'Lua.diagnostics.disable', 'unused-local')
config.remove(nil, 'Lua.diagnostics.disable', 'unused-function')
config.remove(nil, 'Lua.diagnostics.disable', 'undefined-global')