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

29 lines
364 B
TypeScript
Raw Normal View History

module A.B.C {
export class Point {
x: number;
y: number;
}
}
module A {
export module B {
export class C { // Error
name: string;
}
}
}
module M2.X {
export class Point {
x: number; y: number;
}
}
module M2 {
export module X {
export var Point: number; // Error
}
}