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