diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-07-19 17:09:56 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-07-19 17:09:56 +0800 |
commit | 682614e0004472d485b834e3608bfa9c62a6fee6 (patch) | |
tree | 3d63e88ccacf237ddc6291de008c910c8842f58c /test/hover | |
parent | 2431b557a125a609bdd8ccbf9e072b8cba4661e6 (diff) | |
download | lua-language-server-682614e0004472d485b834e3608bfa9c62a6fee6.zip |
check visible recursive
fix #2145
Diffstat (limited to 'test/hover')
-rw-r--r-- | test/hover/init.lua | 19 |
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> |