diff options
-rw-r--r-- | script-beta/parser/guide.lua | 1 | ||||
-rw-r--r-- | test-beta/hover/init.lua | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua index ca1716e0..288a0381 100644 --- a/script-beta/parser/guide.lua +++ b/script-beta/parser/guide.lua @@ -1463,6 +1463,7 @@ function m.checkSameSimpleByBindDocs(status, obj, start, queue, mode) } end end + newStatus.cache.searchingBindedDoc = nil for _, res in ipairs(newStatus.results) do queue[#queue+1] = { obj = res, diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua index 912807ac..5a68edd5 100644 --- a/test-beta/hover/init.lua +++ b/test-beta/hover/init.lua @@ -1337,3 +1337,15 @@ global t: c { f: function, } ]] + +TEST [[ +---@class c +t = {} + +---@overload fun() +function t.<?f?>() end +]] +[[ +(2 个定义,1 个原型) +(2) function c.f() +]] |