Skip to content

v2.4.9 _G的class标记无法识别??? #805

@HiKit

Description

@HiKit

--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的,之前版本这种是可以正确识别的
**
image
**

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions