From 4b0d634a27ae188c98f839736bad1b8514952467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 10 Feb 2023 16:01:17 +0800 Subject: fix #1889 --- test/type_inference/init.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/type_inference') diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 5a9e1796..4e3c9d5b 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -2620,6 +2620,17 @@ end print() ]] +TEST 'integer' [[ +---@type integer? +local n + +if not n then + os.exit() +end + +print() +]] + TEST 'table' [[ ---@type table? local n -- cgit v1.2.3