Skip to content

[Emit] Module name not underscored when conflicts with parameter name #41

@mhegazy

Description

@mhegazy

Input:

module Y {    function f(Y) { return g; }    export var g;}

Emit:

var Y;
(function (Y) {
    function f(Y) {
        return Y.g;   <-- wrong
    }
    Y.g;})(Y || (Y = {}));

Expected emit:

var Y;
(function (_Y) {
    function f(Y) {
        return _Y.g;
    }
    _Y.g;})(Y || (Y = {}));

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