diff options
Diffstat (limited to 'test/diagnostics')
-rw-r--r-- | test/diagnostics/common.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua index 2ff0cd5f..4194fcdc 100644 --- a/test/diagnostics/common.lua +++ b/test/diagnostics/common.lua @@ -2186,3 +2186,13 @@ local t2 print(t2._id) ]] config.set(nil, 'Lua.doc.protectedName', nil) + +TEST [[ +---@class A +---@field private x number +local mt = {} + +function mt:init() + print(self.x) +end +]] |