Skip to content
New issue

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

No hints for table fields inside alias function #727

Closed
lua-rocks opened this issue Oct 11, 2021 · 0 comments
Closed

No hints for table fields inside alias function #727

lua-rocks opened this issue Oct 11, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@lua-rocks
Copy link

---@class test_table
---@field aaa integer
---@field bbb string
---@field ccc string
---@field ddd function

---@alias test_fun fun(v:any, o:test_table): string

---@type test_fun
local f

f(2, {a}) -- expected hint: "aaa"

screenshot

@sumneko sumneko added the enhancement New feature or request label Oct 12, 2021
@sumneko sumneko added this to the 2.5.0 milestone Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants