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

如果注解里声明类的字段成员是类本身,使用时有些问题 #294

Closed
ltccss opened this issue Dec 9, 2020 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@ltccss
Copy link

ltccss commented Dec 9, 2020

测试代码:

---@class AAAA
---@field a AAAA
AAAA = {};

function AAAA:SSDF()
    
end

如果后续这样子使用:
AAAA.a:SSDF()
就无法推导出SSDF是AAAA的方法了

如果这样子使用,就没问题

local t = AAAA.a
t:SSDF()

插件版本:v1.5.0

@sumneko sumneko added the bug Something isn't working label Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants