We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think this is somewhat similar to #460, where the difference is that the callback is defined as a local variable.
Using the sample code in the above issue to illustrate the situation:
---@class Class ---@field x number ---@field y number ---@param callback fun(value: Class) function work(callback) end local function f(value) value.$ -- no autocompletion here end work(f)
It would be great if f can be inferred automatically (given that f is not already manually annotated of course).
f
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I think this is somewhat similar to #460, where the difference is that the callback is defined as a local variable.
Example
Using the sample code in the above issue to illustrate the situation:
It would be great if
f
can be inferred automatically (given thatf
is not already manually annotated of course).The text was updated successfully, but these errors were encountered: