Skip to content

[Errors] No error trying to import shadowed internal module #73

Closed
@mhegazy

Description

@mhegazy

Code, should error but doesn't:

    module A {
        export var x;
    }
        module B {
        var A = 1;
// !!! Internal module reference 'A' in import declaration does not reference module instance for 'A'.        
    import Y = A; // Should cause an error
        console.log(Y.x);
    }

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