diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 61677cea..a05749b8 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -3209,3 +3209,12 @@ local n print(<?n?>) ]] + +TEST 'integer' [[ +---@type integer? +local n +if true then + n = 0 +end +local <?x?> = n or 0 +]] |