swc/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.ts

22 lines
456 B
TypeScript

class Point {
constructor(public x: number, public y: number) { }
static Origin: Point = { x: 0, y: 0 };
}
module Point {
export var Origin = ""; //expected duplicate identifier error
}
module A {
export class Point {
constructor(public x: number, public y: number) { }
static Origin: Point = { x: 0, y: 0 };
}
export module Point {
export var Origin = ""; //expected duplicate identifier error
}
}