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

定义泛型函数对于指定了泛型类型的参数插件无法识别该参数的类型,不能提示出该类型的正确成员 #2634

Open
zzyAZU opened this issue Apr 26, 2024 · 0 comments

Comments

@zzyAZU
Copy link

zzyAZU commented Apr 26, 2024

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?

Annotations

Expected Behaviour

插件应该识别 testfun 函数 参数 p 有 p1 的字段

Actual Behaviour

插件无法识别 testfun 函数 参数 p 有 p1 字段

Reproduction steps

---@Class TestTP
---@field p1 string
---@field p2 number

---@Generic T: TestTP
---@param p T
function testfun(p)
print(p.p1)
end

Additional Notes

No response

Log File

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant