summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-02 17:45:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-02 17:45:24 +0800
commitb2c9a64409fdc8ba03410155424d36d61e0fdb93 (patch)
tree848b1375915cd76ee5910268999f71fdc8fe8217 /test/hover/init.lua
parent9a25855cee5238a870f366a2f9d096142b72cd5a (diff)
downloadlua-language-server-b2c9a64409fdc8ba03410155424d36d61e0fdb93.zip
resove #524
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r--test/hover/init.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index ff33944b..d9492fd1 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -1584,3 +1584,20 @@ local f
[[
local f: any
]]
+
+TEST [[
+---@class Position
+---@field x number
+---@field y number
+---@field z? number
+local <?t?>
+
+t.z = any
+]]
+[[
+local t: Position {
+ x: number,
+ y: number,
+ z?: number,
+}
+]]