diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-16 00:05:21 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-16 00:05:21 +0800 |
commit | 697c9359636a639f044192fd81e3f4374488192c (patch) | |
tree | 3ca64a892bf9699441afabf0ea19c77ec70e7567 /test | |
parent | 7d546aeb0c78d2790a583809ceabfa620fdbde3c (diff) | |
download | lua-language-server-697c9359636a639f044192fd81e3f4374488192c.zip |
fix #1306
Diffstat (limited to 'test')
-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 b8951307..46cb2471 100644 --- a/test/diagnostics/type-check.lua +++ b/test/diagnostics/type-check.lua @@ -722,5 +722,12 @@ if t then end ]] +config.set(nil, 'Lua.type.weakUnionCheck', true) +TEST [[ +---@type number +local x = G +]] +config.set(nil, 'Lua.type.weakUnionCheck', false) + config.remove(nil, 'Lua.diagnostics.disable', 'unused-local') config.remove(nil, 'Lua.diagnostics.disable', 'undefined-global') |