diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-24 05:42:20 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-24 05:42:20 +0800 |
commit | b390ad6411478c2cccadd9750b01971052a7e2c4 (patch) | |
tree | 9455c7a4ed3e7b4806a280a15f5e9f4a94deff9b /test | |
parent | 7d51c01c0b9f4ab70d1ee95950d481cbc40f9092 (diff) | |
download | lua-language-server-b390ad6411478c2cccadd9750b01971052a7e2c4.zip |
first local of `for .. in` can not be nil
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 243eb218..974e3f73 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -2048,3 +2048,11 @@ end print(<?x?>) ]] + +TEST 'integer' [[ +---@type fun():integer? +local iter + +for <?x?> in iter do +end +]] |