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

16 lines
252 B
TypeScript
Raw Normal View History

enum enumdule {
Red, Blue
}
module enumdule {
export class Point {
constructor(public x: number, public y: number) { }
}
}
var x: enumdule;
var x = enumdule.Red;
var y: { x: number; y: number };
var y = new enumdule.Point(0, 0);