diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-24 04:15:34 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-24 04:15:34 +0800 |
commit | e76e59948ff86f37a7b17fa79ca7041a1dae1bf8 (patch) | |
tree | 72aeb15799df78097d2ef8c6b031ed1c1b5cc067 /test/type_inference | |
parent | ad626d2cfdc9b64c4d2d86dc5e0d352c37788eef (diff) | |
download | lua-language-server-e76e59948ff86f37a7b17fa79ca7041a1dae1bf8.zip |
infer by `if not x or x then`
Diffstat (limited to 'test/type_inference')
-rw-r--r-- | test/type_inference/init.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 052348e2..41ec3df7 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -1957,3 +1957,11 @@ local x if x and <?x?> then end ]] + +TEST 'integer' [[ +---@type integer? +local x + +if not x or <?x?> then +end +]] |