summaryrefslogtreecommitdiff
path: root/test/definition/luadoc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/definition/luadoc.lua')
-rw-r--r--test/definition/luadoc.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua
index e6827d65..14f24552 100644
--- a/test/definition/luadoc.lua
+++ b/test/definition/luadoc.lua
@@ -557,6 +557,13 @@ TEST [[
local Foo = {}
function Foo:<!bar1!>() end
+---@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 table<number, table<number, Foo>>
local v1
for i, v in ipairs(v1) do