diff options
Diffstat (limited to 'test')
-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 5a9e1796..4e3c9d5b 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -2620,6 +2620,17 @@ end print(<?n?>) ]] +TEST 'integer' [[ +---@type integer? +local n + +if not n then + os.exit() +end + +print(<?n?>) +]] + TEST 'table' [[ ---@type table? local n |