diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-02 17:45:24 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-02 17:45:24 +0800 |
commit | b2c9a64409fdc8ba03410155424d36d61e0fdb93 (patch) | |
tree | 848b1375915cd76ee5910268999f71fdc8fe8217 /test/hover | |
parent | 9a25855cee5238a870f366a2f9d096142b72cd5a (diff) | |
download | lua-language-server-b2c9a64409fdc8ba03410155424d36d61e0fdb93.zip |
resove #524
Diffstat (limited to 'test/hover')
-rw-r--r-- | test/hover/init.lua | 17 |
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, +} +]] |