Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Emit] clodule with recursive reference #42

Closed
mhegazy opened this issue Jul 17, 2014 · 0 comments
Closed

[Emit] clodule with recursive reference #42

mhegazy opened this issue Jul 17, 2014 · 0 comments
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Jul 17, 2014

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 = {}));
@mhegazy mhegazy added this to the TypeScript 1.1 milestone Jul 17, 2014
ahejlsberg added a commit that referenced this issue Jul 19, 2014
ahejlsberg added a commit that referenced this issue Jul 19, 2014
ahejlsberg added a commit that referenced this issue Jul 21, 2014
ahejlsberg added a commit that referenced this issue Jul 21, 2014
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

2 participants