Skip to content

namespace or module exporting error #434

@shunfy

Description

@shunfy

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions