From c57556e25cb02e01011272c305854d0f1c106e1c Mon Sep 17 00:00:00 2001 From: Lei Zhu Date: Mon, 4 Jan 2021 14:59:10 +0800 Subject: =?UTF-8?q?=E6=B7=BB=E5=8A=A0table<=20table<>>=E8=BF=99=E7=A7=8D?= =?UTF-8?q?=E5=B5=8C=E5=A5=97table=E7=9A=84=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/definition/luadoc.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test') diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua index 3a6ff15d..210f5a26 100644 --- a/test/definition/luadoc.lua +++ b/test/definition/luadoc.lua @@ -317,3 +317,16 @@ for k, v in pairs(v1) do print(v.bar1) end ]] + +TEST [[ +---@class Foo +local Foo = {} +function Foo:() end + +---@type table> +local v1 +for i, v in ipairs(v1) do + local v2 = v[1] + print(v2.) +end +]] -- cgit v1.2.3