ts:
module test {
export class bbbb {
}
}
class cccc extends test.bbbb {
}
lua:
local test = test or {}
do
local bbbb = bbbb or {}
bbbb.__index = bbbb
function bbbb.new(construct, ...)
local self = setmetatable({}, bbbb)
if construct and bbbb.constructor then bbbb.constructor(self, ...) end
return self
end
function bbbb.constructor(self)
end
test.bbbb = bbbb
end
local cccc = cccc or bbbb.new()
cccc.__index = cccc
cccc.__base = bbbb
!!!!! bbbb.new() is error!
===> test.bbbb.new()
Thanks!
ts:
lua:
!!!!! bbbb.new() is error!
===> test.bbbb.new()
Thanks!