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
--Test.lua ---@Class Test _G.Test = {};
function Test:New() end
function Test:TestA()
end
--TestA.lua ---@Class TestA:Test local TestA = {};
---@type Test local t = Test:New();
local ta = TestA:New();
如图,TestA无法识别继承Test,Test是_G的,之前版本这种是可以正确识别的 ** **
The text was updated successfully, but these errors were encountered:
确实有问题,我把 ---@class 可以影响的复制操作类型做了限制,看来得对这种情况做一些特殊处理。
---@class
你可以先改成没有 _G 前缀的赋值方式。
_G
Sorry, something went wrong.
---@Class GObject local GObject = {}; _G.GObject = GObject;
OK,先这么补救了
8760bf9
No branches or pull requests
--Test.lua
---@Class Test
_G.Test = {};
function Test:New()
end
function Test:TestA()
end
--TestA.lua
---@Class TestA:Test
local TestA = {};
---@type Test
local t = Test:New();
local ta = TestA:New();
如图,TestA无法识别继承Test,Test是_G的,之前版本这种是可以正确识别的

**
**
The text was updated successfully, but these errors were encountered: