summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
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
+]]