diff options
Diffstat (limited to 'test/type_inference/init.lua')
-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 63b4bf88..7d0fec91 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -2164,6 +2164,15 @@ print(<?x?>) ]] TEST 'integer' [[ +---@type integer? +local x + +while x do + print(<?x?>) +end +]] + +TEST 'integer' [[ ---@type fun():integer? local iter |