diff options
-rw-r--r-- | test/definition/luadoc.lua | 13 |
1 files changed, 13 insertions, 0 deletions
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:<!bar1!>() end + +---@type table<number, table<number, Foo>> +local v1 +for i, v in ipairs(v1) do + local v2 = v[1] + print(v2.<?bar1?>) +end +]] |