mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
32 lines
451 B
TypeScript
32 lines
451 B
TypeScript
module A {
|
|
export class Point {
|
|
x: number;
|
|
y: number;
|
|
}
|
|
}
|
|
|
|
module A{
|
|
// expected error
|
|
export class Point {
|
|
origin: number;
|
|
angle: number;
|
|
}
|
|
}
|
|
|
|
module X.Y.Z {
|
|
export class Line {
|
|
length: number;
|
|
}
|
|
}
|
|
|
|
module X {
|
|
export module Y {
|
|
export module Z {
|
|
// expected error
|
|
export class Line {
|
|
name: string;
|
|
}
|
|
}
|
|
}
|
|
}
|