Skip to content

[Emit] clodule with recursive reference #42

@mhegazy

Description

@mhegazy
module M{
  export class C {  }
  export module C {
    export var C = M.C
  }}

Expected:

var M;
(function (M) {
    var C = (function () {
        function C() { }
        return C;
    })();
    M.C = C;
    (function (_C) {
        _C.C = M.C;
    })(M.C || (M.C = {}));
    var C = M.C;
})(M || (M = {}));

Actual:

var M;
(function (M) {
    var C = (function () {
        function C() { }
        return C;
    })();
    M.C = C;
    (function (C) {
        C.C = M.C;
    })(M.C || (M.C = {}));
    var C = M.C;
})(M || (M = {}));

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions