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

30 lines
485 B
TypeScript

// @Filename: module.ts
module X.Y {
export module Point {
export var Origin = new Point(0, 0);
}
}
// @Filename: classPoint.ts
module X.Y {
// duplicate identifier
export class Point {
constructor(x: number, y: number) {
this.x = x;
this.y = y;
}
x: number;
y: number;
}
}
// @Filename: simple.ts
module A {
export var Instance = new A();
}
// duplicate identifier
class A {
id: string;
}