Oh yea, that was what you talked about. I didn't understand it at the time .
if type(self.identifier) == "table" then
for key, __ in pairs(self.identifier) do
self.identifier[key] = nil
end
end
"Lua.type.weakUnionCheck": true,
This warning was introduced with sumneko version 3.7.0, which I hadn't tested until recently. I see that replacing
---@type
with---@class
resolves it, but this use of---@class
contradicts my understanding of this annotation and is not documented in sumneko's official documentation either. This makes me unsure, whether it's intended or not.I'm going to ask this question in sumneko's github.
Until then, I recommend disabling the
inject-field
diagnostic (see linked post) and continuing to work with---@type
.