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 0c9be21e..37cf0324 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -3270,3 +3270,14 @@ local b local <?c?> = a or b ]] + +TEST 'number|table|nil' [[ +---@type table|nil +local a + +---@type number|nil +local b + +local c = a and b +local <?d?> = a or b +]] |