summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-01 20:51:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-01 20:51:10 +0800
commit5e9e75b46fdacda1bb1479780af6a0132d7d17cb (patch)
tree0e13f27a73f67aad24b81e504dec9949cceb68c0 /test/hover/init.lua
parent74e8cdc64719198018a565f438fa1ab66bfc71f5 (diff)
downloadlua-language-server-5e9e75b46fdacda1bb1479780af6a0132d7d17cb.zip
fix
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r--test/hover/init.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 165f62c5..dad32f14 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -2380,3 +2380,16 @@ local obj: B {
get: function,
}
]]
+
+TEST [[
+---@class A
+---@field x fun(): string
+
+---@type table<string, A>
+local obj
+
+local x = obj[''].<?x?>()
+]]
+[[
+(field) A.x: fun():string
+]]