diff options
Diffstat (limited to 'test/definition/luadoc.lua')
-rw-r--r-- | test/definition/luadoc.lua | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua index c14e1242..d8da938e 100644 --- a/test/definition/luadoc.lua +++ b/test/definition/luadoc.lua @@ -207,23 +207,30 @@ y.<?a?> ]] TEST [[ ----@class <!loli!> -local unit!> +---@class <!A!> +local mt -function unit:pants() +function mt:f() end ----@see <?loli?> +---@see <?A?> ]] TEST [[ ----@class loli -local unit +---@class A +local mt -function unit:<!pants!>() +function <!mt:f!>() end ----@see loli#<?pants?> +---@see <?A.f?> +]] + +TEST [[ +AAA = {} +<!AAA.BBB!> = 1 + +---@see <?AAA.BBB?> ]] TEST [[ |