diff options
Diffstat (limited to 'test/definition/luadoc.lua')
-rw-r--r-- | test/definition/luadoc.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua index 74770794..d1a4aaf0 100644 --- a/test/definition/luadoc.lua +++ b/test/definition/luadoc.lua @@ -297,19 +297,22 @@ print(v1.<?bar1?>) TEST [[ ---@class A -local <!t!> +local t + +t.<!x!> = 1 ---@type A[] local b -local <?<!c!>?> = b[1] +local c = b[1] +c.<?x?> ]] TEST [[ ---@class A local <!t!> ----@type table<number, A> +---@type { [number]: A } local b local <?<!c!>?> = b[1] |