summaryrefslogtreecommitdiff
path: root/test/definition/luadoc.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-14 23:38:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-14 23:38:13 +0800
commitcf3d5108c52e9194ed9fff1a54569edb7bd6ee1a (patch)
tree430271719be98ed76b3c2a98117fac2c57cb6844 /test/definition/luadoc.lua
parentbf334a76c7ebff9da14292061a8f4a904ff38465 (diff)
downloadlua-language-server-cf3d5108c52e9194ed9fff1a54569edb7bd6ee1a.zip
#1050
class -> local/global -> .value
Diffstat (limited to 'test/definition/luadoc.lua')
-rw-r--r--test/definition/luadoc.lua22
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?>
+]]