diff options
author | sumneko <sumneko@hotmail.com> | 2022-03-05 21:44:25 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-03-05 21:44:25 +0800 |
commit | aa6703f8e866cbc2cb50740000ad6ca1e46dd860 (patch) | |
tree | f8a79bd67aa5b0362d6dd13d84b27c43bd92def5 /test | |
parent | e556621ca31bc80c78048b82412cb46bdb3a085a (diff) | |
download | lua-language-server-aa6703f8e866cbc2cb50740000ad6ca1e46dd860.zip |
cleanup
Diffstat (limited to 'test')
-rw-r--r-- | test/definition/luadoc.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua index 74770794..d1a4aaf0 100644 --- a/test/definition/luadoc.lua +++ b/test/definition/luadoc.lua @@ -297,19 +297,22 @@ print(v1.<?bar1?>) TEST [[ ---@class A -local <!t!> +local t + +t.<!x!> = 1 ---@type A[] local b -local <?<!c!>?> = b[1] +local c = b[1] +c.<?x?> ]] TEST [[ ---@class A local <!t!> ----@type table<number, A> +---@type { [number]: A } local b local <?<!c!>?> = b[1] |