diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-14 23:38:13 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-14 23:38:13 +0800 |
commit | cf3d5108c52e9194ed9fff1a54569edb7bd6ee1a (patch) | |
tree | 430271719be98ed76b3c2a98117fac2c57cb6844 /test/definition/luadoc.lua | |
parent | bf334a76c7ebff9da14292061a8f4a904ff38465 (diff) | |
download | lua-language-server-cf3d5108c52e9194ed9fff1a54569edb7bd6ee1a.zip |
#1050
class -> local/global -> .value
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?> +]] |