diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-14 15:54:59 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-14 15:54:59 +0800 |
commit | 72d3060bc60847d47d17fab4ff1b65bf0c3a1b8e (patch) | |
tree | 869649f47cb0c1a2abcc62dc9b2a8a8348d8d007 /test/type_inference/init.lua | |
parent | 0691911c68f777559599b997f85c83407b9f3d6b (diff) | |
download | lua-language-server-72d3060bc60847d47d17fab4ff1b65bf0c3a1b8e.zip |
update
Diffstat (limited to 'test/type_inference/init.lua')
-rw-r--r-- | test/type_inference/init.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 566e847a..63b4bf88 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -1813,6 +1813,17 @@ TEST 'integer' [[ ---@type integer? local x +if not x then + return +end + +print(<?x?>) +]] + +TEST 'integer' [[ +---@type integer? +local x + if xxx and x then print(<?x?>) end |