diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-12-13 21:00:38 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-12-13 21:00:38 +0800 |
commit | eb05f7ac0f85d034c20e29f68b12d84fa7436601 (patch) | |
tree | 1f93744bf103c861bfe2252f3b7d2eb37ef741d7 /test/type_inference | |
parent | ed97a9e8905fdbb3b23694896c813cfdb73cd91f (diff) | |
download | lua-language-server-eb05f7ac0f85d034c20e29f68b12d84fa7436601.zip |
stash
Diffstat (limited to 'test/type_inference')
-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 cabff606..eb2d2e5c 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -1829,6 +1829,17 @@ end print(<?x?>) ]] +TEST 'nil' [[ +---@type integer? +local x + +if not x then + print(<?x?>) +end + +print(x) +]] + TEST 'integer' [[ ---@type integer? local x |