diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-10-17 14:54:14 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-10-17 14:54:14 +0800 |
commit | 3bdd74aa30a6175f1bbf973559241f99eb563dfe (patch) | |
tree | 1f357550d5d99dc2872d4df5f11f93fb396798df /test/diagnostics | |
parent | 2638eeba70bf47ddd7ac5eec60141f7514135e4b (diff) | |
download | lua-language-server-3bdd74aa30a6175f1bbf973559241f99eb563dfe.zip |
fix #1637
Diffstat (limited to 'test/diagnostics')
-rw-r--r-- | test/diagnostics/type-check.lua | 7 |
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') |