summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-03-08 15:16:47 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-03-08 15:16:47 +0800
commitdd7317a907b88cb102f45535ef19d67b47564c7f (patch)
tree834d10e71cce6ec2f8c6914b56de5ee4ecab6fa8 /test
parentdd37471ee6bd108fad9e3014a827621114ac4257 (diff)
downloadlua-language-server-dd7317a907b88cb102f45535ef19d67b47564c7f.zip
update
Diffstat (limited to 'test')
-rw-r--r--test/definition/luadoc.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua
index c7c67bb6..97b12b85 100644
--- a/test/definition/luadoc.lua
+++ b/test/definition/luadoc.lua
@@ -822,22 +822,22 @@ print(t.<?x?>)
TEST [[
---@class A
----@field <![1]!>? boolean
+---@field [1]? <!{}!>
local t
-print(t[<?1?>])
+local <!<?v?>!> = t[1]
]]
TEST [[
----@type { <![1]?: boolean!> }
+---@type { [1]?: <!{}!> }
local t
-print(t[<?1?>])
+local <!<?v?>!> = t[1]
]]
TEST [[
---@class A
----@field <!['xx']!>? boolean
+---@field <!['xx']!>? <!{}!>
local t
print(t.<?xx?>)