summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-07-19 17:09:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-07-19 17:09:56 +0800
commit682614e0004472d485b834e3608bfa9c62a6fee6 (patch)
tree3d63e88ccacf237ddc6291de008c910c8842f58c /test/hover/init.lua
parent2431b557a125a609bdd8ccbf9e072b8cba4661e6 (diff)
downloadlua-language-server-682614e0004472d485b834e3608bfa9c62a6fee6.zip
check visible recursive
fix #2145
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r--test/hover/init.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index e77d8c98..d1d178fc 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -2383,6 +2383,25 @@ local obj: B {
TEST [[
---@class A
+local M = {}
+
+---@private
+M.x = 0
+
+---@private
+function M:init()
+ self.x = 1
+end
+
+---@type A
+local <?a?>
+]]
+[[
+local a: A
+]]
+
+TEST [[
+---@class A
---@field x fun(): string
---@type table<string, A>