diff options
Diffstat (limited to 'test/definition/luadoc.lua')
-rw-r--r-- | test/definition/luadoc.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua index 97b12b85..d7ac9a5b 100644 --- a/test/definition/luadoc.lua +++ b/test/definition/luadoc.lua @@ -859,3 +859,25 @@ end <?t?> ]] + +TEST [[ +---@class A +local t = { + <!x!> = nil, +} + +---@type A +local f +f.<?x?> +]] + +TEST [[ +---@class A +G = { + <!x!> = nil, +} + +---@type A +local f +f.<?x?> +]] |