mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +03:00
30 lines
485 B
TypeScript
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;
|
|
}
|