From 3b97d7d4d54755517db0fd776c006bbb37313967 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 11 May 2021 22:07:47 +0800 Subject: stash --- test/definition/luadoc.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test') diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua index 3620f25e..fe6d1e21 100644 --- a/test/definition/luadoc.lua +++ b/test/definition/luadoc.lua @@ -426,6 +426,21 @@ local b local ?> = f(b) ]] +TEST [[ +---@class C +local + +---@generic V, T +---@param t T +---@return fun(t: V[]): V +---@return T +local function iterator(t) end + +for in iterator(v1) do + print() +end +]] + TEST [[ ---@class Foo local Foo = {} -- cgit v1.2.3