Skip to content

[Spec] Duplicate ambient external module name #52

Closed
@mhegazy

Description

@mhegazy
declare module "fs" {
    var x: string;
}
declare module "fs" {
    var y: number;
}

Expected:
!!! Duplicate identifier ''fs''.
!!! Ambient external module declaration cannot be reopened.
Actual: no error

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issueSpecIssues related to the TypeScript language specification

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions