diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-04 20:26:49 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-04 20:26:49 +0800 |
commit | 6f52414fc098886056d8060dde097626e5095126 (patch) | |
tree | 4ae6d5240694b5874de3058beda58aea8749c17a /test/type_inference/init.lua | |
parent | ffc89179de7598fce8bd0db54f09275d09d3f5b2 (diff) | |
download | lua-language-server-6f52414fc098886056d8060dde097626e5095126.zip |
fix
Diffstat (limited to 'test/type_inference/init.lua')
-rw-r--r-- | test/type_inference/init.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index cfb7d3a6..50b3901d 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -1857,6 +1857,15 @@ if xxx and x then end ]] +TEST 'integer' [[ +---@type integer? +local x + +if x and not mark[x] then + print(<?x?>) +end +]] + TEST 'integer?' [[ ---@type integer? local x |