diff options
author | sumneko <sumneko@hotmail.com> | 2022-03-06 21:40:34 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-03-06 21:40:34 +0800 |
commit | bd9566eb4c856d041e705be59e9b62b0a09d3ed4 (patch) | |
tree | 4e7454be8cd388a91c373b3ebf9cfe103455d39b /test | |
parent | aa6703f8e866cbc2cb50740000ad6ca1e46dd860 (diff) | |
download | lua-language-server-bd9566eb4c856d041e705be59e9b62b0a09d3ed4.zip |
update
Diffstat (limited to 'test')
-rw-r--r-- | test/definition/luadoc.lua | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua index d1a4aaf0..11847898 100644 --- a/test/definition/luadoc.lua +++ b/test/definition/luadoc.lua @@ -310,12 +310,15 @@ c.<?x?> TEST [[ ---@class A -local <!t!> +local t + +t.<!x!> = 1 ---@type { [number]: A } local b -local <?<!c!>?> = b[1] +local c = b[1] +c.<?x?> ]] TEST [[ @@ -323,7 +326,7 @@ TEST [[ local Foo = {} function Foo:<!bar1!>() end ----@type table<number, Foo> +---@type { [number]: Foo } local v1 print(v1[1].<?bar1?>) ]] @@ -337,7 +340,7 @@ function Foo:<!bar1!>() end local Foo2 = {} function Foo2:bar1() end ----@type Foo2<number, Foo> +---@type { [number]: Foo } local v1 print(v1[1].<?bar1?>) ]] |