How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Type Checking
Expected Behaviour

Actual Behaviour

Reproduction steps
---@class flag96
flag96 =
{
part = { 0, 0, 0 };
}
setmetatable(flag96, flag96);
---@param p1? integer
---@param p2? integer
---@param p3? integer
---@return flag96
function flag96:__call( p1, p2, p3)
local part = {};
part[1] = p1 or 0;
part[2] = p2 or 0;
part[3] = p3 or 0;
return setmetatable(part, { __index = self });
end
local flags = flag96(1, 2, 3);
Additional Notes
No response
Log File
No response
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Type Checking
Expected Behaviour
Actual Behaviour
Reproduction steps
Additional Notes
No response
Log File
No response