diff options
Diffstat (limited to 'test/diagnostics')
-rw-r--r-- | test/diagnostics/invisible.lua | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/test/diagnostics/invisible.lua b/test/diagnostics/invisible.lua index 2fc6791e..3c0ee3fb 100644 --- a/test/diagnostics/invisible.lua +++ b/test/diagnostics/invisible.lua @@ -85,11 +85,45 @@ local t2 print(t2.<!_id!>) ]] +TEST [[ +---@class A +local A = { + _id = 0 +} + +---@type A +local t + +print(t.<!_id!>) + +---@class B: A +local t2 + +print(t2.<!_id!>) +]] + config.set(nil, 'Lua.doc.privateName', nil) config.set(nil, 'Lua.doc.protectedName', { '_*' }) TEST [[ ---@class A +local A = { + _id = 0 +} + +---@type A +local t + +print(t.<!_id!>) + +---@class B: A +local t2 + +print(t2._id) +]] + +TEST [[ +---@class A ---@field _id number ---@type A |