summaryrefslogtreecommitdiff
path: root/test/type_inference/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-04 20:26:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-04 20:26:49 +0800
commit6f52414fc098886056d8060dde097626e5095126 (patch)
tree4ae6d5240694b5874de3058beda58aea8749c17a /test/type_inference/init.lua
parentffc89179de7598fce8bd0db54f09275d09d3f5b2 (diff)
downloadlua-language-server-6f52414fc098886056d8060dde097626e5095126.zip
fix
Diffstat (limited to 'test/type_inference/init.lua')
-rw-r--r--test/type_inference/init.lua9
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