diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-02-26 17:20:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-02-26 17:20:07 +0800 |
commit | 7d262e90464e3feea872393da48def8d22ec97a9 (patch) | |
tree | 155f2f16d80716ba681dccb162011e82637f0e53 /test/type_inference/init.lua | |
parent | 0ded390ce1b477e62963e8e67488b00ba8427a35 (diff) | |
download | lua-language-server-7d262e90464e3feea872393da48def8d22ec97a9.zip |
improve ipairs
Diffstat (limited to 'test/type_inference/init.lua')
-rw-r--r-- | test/type_inference/init.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 725b19fe..c211283a 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -547,3 +547,18 @@ local t for k, <?v?> in pairs(t) do end ]] + +TEST 'boolean' [[ +---@generic T: table, V +---@param t T +---@return fun(table: V[], i?: integer):integer, V +---@return T +---@return integer i +local function ipairs(t) end + +---@type boolean[] +local t + +for _, <?v?> in ipairs(t) do +end +]] |