diff options
author | Lei Zhu <uhziel@gmail.com> | 2021-01-05 20:50:51 +0800 |
---|---|---|
committer | Lei Zhu <uhziel@gmail.com> | 2021-01-05 20:50:51 +0800 |
commit | 217aa4e586b1786bc6b82828279b745a29290f4d (patch) | |
tree | 9b8350127704653ac5c80b2b81497a5d27729918 /test/definition/luadoc.lua | |
parent | eb87cc84f2475911c2086da982902c75f3bfdd3a (diff) | |
download | lua-language-server-217aa4e586b1786bc6b82828279b745a29290f4d.zip |
通过扩展 getArrayLevel 来找到层级
Diffstat (limited to 'test/definition/luadoc.lua')
-rw-r--r-- | test/definition/luadoc.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua index 3c0c764b..5315b5fd 100644 --- a/test/definition/luadoc.lua +++ b/test/definition/luadoc.lua @@ -331,3 +331,13 @@ for i, v in ipairs(v1) do print(v2.<?bar1?>) end ]] + +TEST [[ +---@class Foo +local Foo = {} +function Foo:<!bar1!>() end + +---@type table<number, table<number, Foo>> +local v1 +print(v1[1][1].<?bar1?>) +]] |