summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-01-13 18:18:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-01-13 18:18:09 +0800
commit7a8ffbba2af9e16225f757c7915c268125acd1e2 (patch)
treeac11f26518c4098ae3fe031d963feef44d5c9f6d /test/hover/init.lua
parent4be30dd4b57ac431d363dc524f375c2ccb514129 (diff)
downloadlua-language-server-7a8ffbba2af9e16225f757c7915c268125acd1e2.zip
fix #876
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r--test/hover/init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index c12928d5..bb1d02c3 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -1644,6 +1644,7 @@ TEST [[
---@field x number
---@field y number
---@field z? number
+---@field [3]? number
local <?t?>
t.z = any
@@ -1653,6 +1654,7 @@ local t: Position {
x: number,
y: number,
z?: number,
+ [3]?: number,
}
]]