summaryrefslogtreecommitdiff
path: root/test-beta
diff options
context:
space:
mode:
Diffstat (limited to 'test-beta')
-rw-r--r--test-beta/hover/init.lua14
1 files changed, 13 insertions, 1 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua
index 6b316919..fb2bbf95 100644
--- a/test-beta/hover/init.lua
+++ b/test-beta/hover/init.lua
@@ -1346,7 +1346,7 @@ global t: c {
TEST [[
---@class c
-t = {}
+local t = {}
---@overload fun()
function t.<?f?>() end
@@ -1357,6 +1357,18 @@ function t.<?f?>() end
]]
TEST [[
+---@class c
+t = {}
+
+---@overload fun()
+function t.<?f?>() end
+]]
+[[
+(2 个定义,1 个原型)
+(2) function t.f()
+]]
+
+TEST [[
---@class C
---@field field any