summaryrefslogtreecommitdiff
path: root/test-beta/hover
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-17 15:44:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-17 15:44:43 +0800
commit54a97c8ebd12bee141eb5d0d0a3b92f9d411d0d5 (patch)
treece37b2ee5583a576cf679f098003457aa726221d /test-beta/hover
parent8ddc5f60a24adb1ef8ac578965190a3e23e180c3 (diff)
downloadlua-language-server-54a97c8ebd12bee141eb5d0d0a3b92f9d411d0d5.zip
lookup 要 deep
Diffstat (limited to 'test-beta/hover')
-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