From a744e3439e165be13f8f0ba5262b8f1efec0d86d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 15 Dec 2022 20:23:26 +0800 Subject: stash --- test/type_inference/init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index eb2d2e5c..8ae65e48 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -1871,6 +1871,15 @@ if xxx and x then end ]] +TEST 'unknown' [[ +---@type integer? +local x + +if not x and x then + print() +end +]] + TEST 'integer' [[ ---@type integer? local x -- cgit v1.2.3