diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-22 17:07:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-22 17:07:02 +0800 |
commit | a212b62603f6087bc5a34c4aea45f7cdb0643a8b (patch) | |
tree | 19a1490ed0569bd7a06bc57efc1f5ac138060d34 /test | |
parent | 72effeb8f9d9f3c04d4f5aa4f228dcd1d84f2815 (diff) | |
download | lua-language-server-a212b62603f6087bc5a34c4aea45f7cdb0643a8b.zip |
update
Diffstat (limited to 'test')
-rw-r--r-- | test/diagnostics/type-check.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/diagnostics/type-check.lua b/test/diagnostics/type-check.lua index bb0ccdc0..46997181 100644 --- a/test/diagnostics/type-check.lua +++ b/test/diagnostics/type-check.lua @@ -332,5 +332,13 @@ local x x = 1 + G ]] +TEST [[ +---@diagnostic disable:undefined-global +---@type integer +local x + +x = 1 + G +]] + config.remove(nil, 'Lua.diagnostics.disable', 'unused-local') config.remove(nil, 'Lua.diagnostics.disable', 'undefined-global') |