diff options
Diffstat (limited to 'test/type_inference')
-rw-r--r-- | test/type_inference/init.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 278c7986..389fb5be 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -1833,6 +1833,13 @@ end print(<?x?>) ]] +TEST 'integer' [[ +---@type integer? +local x + +<?x?> = x or 1 +]] + TEST 'integer' [=[ local x |