AlexCovizzi / vscode-sqlite

VSCode extension to explore and query SQLite databases.
Apache License 2.0
199 stars 23 forks source link

meta class diagnostics error (missing-parameter) #216

Closed HeeMyung closed 2 years ago

HeeMyung commented 2 years ago

Hello I found a bug about missing parameter diagnostics

Please look at the below image

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'));

I don't think this code have any problem but the diagnostics pops an error like this

image (1)

And if I redirect the call with divide the getChild call into a variable like below, It does not raise any error.

화면 캡처 2022-06-17 155458

This bug is occurring with the last update. (v 3.30 updated about yesterday)

HeeMyung commented 2 years ago

I think I found the wrong project to register an issue with. Sorry