summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-02 19:20:22 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-02 19:20:22 +0800
commit02dd5b6557d3e70859bc3ddb234f8924b0166221 (patch)
tree85a2ff57dc31ba1586542e26bed014514754b089 /test/hover/init.lua
parent63510ae7469aa1cf09da2c356a9feb2ce4be4cd7 (diff)
downloadlua-language-server-02dd5b6557d3e70859bc3ddb234f8924b0166221.zip
improve `---@see`
resolve #1344
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r--test/hover/init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index dad32f14..780c1da8 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -2393,3 +2393,13 @@ local x = obj[''].<?x?>()
[[
(field) A.x: fun():string
]]
+
+TEST [[
+---@class A
+---@field x number
+
+---@see <?A.x?>
+]]
+[[
+(field) A.x: number
+]]