You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
the missing parameter diagnostics catches a false positive warning with non-problem code.
To Reproduce
Please look at the below
I've copied the exact same code for you guys who want to test it self
---@meta
---@class Foo
---@field getChild fun(self:Foo,key:string):Foo
---@class Bar
---@param f Foo
---@return Bar
function toBar(f) end
---@type Foo
local foo = {};
local bar = toBar(foo:getChild('Hello'));
Expected behavior
I don't think this code have any problem but the diagnostics pops an error like this
Screenshots
all the screenshots are included above.
Environment (please complete the following information):
OS: Windows
Is WSL remote? what's this?
Client: VSCode
Additional context
And if I redirect the call with divide the getChild call into a variable like below, It does not raise any error.
Provide logs
The text was updated successfully, but these errors were encountered:
Describe the bug
the missing parameter diagnostics catches a false positive warning with non-problem code.
To Reproduce

Please look at the below
I've copied the exact same code for you guys who want to test it self
Expected behavior
I don't think this code have any problem but the diagnostics pops an error like this
Screenshots
all the screenshots are included above.
Environment (please complete the following information):
Additional context
And if I redirect the call with divide the getChild call into a variable like below, It does not raise any error.
Provide logs
The text was updated successfully, but these errors were encountered: