We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b77daee commit e558d6eCopy full SHA for e558d6e
test/diagnostics/invisible.lua
@@ -85,9 +85,43 @@ local t2
85
86
print(t2.<!_id!>)
87
]]
88
+TEST [[
89
+---@class A
90
+local A = {
91
+ _id = 0
92
+}
93
+
94
+---@type A
95
+local t
96
97
+print(t.<!_id!>)
98
99
+---@class B: A
100
+local t2
101
102
+print(t2.<!_id!>)
103
+]]
104
105
config.set(nil, 'Lua.doc.privateName', nil)
106
107
config.set(nil, 'Lua.doc.protectedName', { '_*' })
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
+print(t2._id)
123
124
125
TEST [[
126
---@class A
127
---@field _id number
0 commit comments