2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/internalModules/DeclarationMerging/EnumAndModuleWithSameNameAndCommonRoot.ts ===
|
|
|
|
enum enumdule {
|
|
|
|
>enumdule : enumdule
|
|
|
|
|
|
|
|
Red, Blue
|
|
|
|
>Red : enumdule
|
|
|
|
>Blue : enumdule
|
|
|
|
}
|
|
|
|
|
|
|
|
module enumdule {
|
2014-08-28 21:40:58 +02:00
|
|
|
>enumdule : typeof enumdule
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class Point {
|
|
|
|
>Point : Point
|
|
|
|
|
|
|
|
constructor(public x: number, public y: number) { }
|
|
|
|
>x : number
|
|
|
|
>y : number
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var x: enumdule;
|
|
|
|
>x : enumdule
|
|
|
|
>enumdule : enumdule
|
|
|
|
|
|
|
|
var x = enumdule.Red;
|
|
|
|
>x : enumdule
|
|
|
|
>enumdule.Red : enumdule
|
|
|
|
>enumdule : typeof enumdule
|
|
|
|
>Red : enumdule
|
|
|
|
|
|
|
|
var y: { x: number; y: number };
|
|
|
|
>y : { x: number; y: number; }
|
|
|
|
>x : number
|
|
|
|
>y : number
|
|
|
|
|
|
|
|
var y = new enumdule.Point(0, 0);
|
|
|
|
>y : { x: number; y: number; }
|
2014-08-25 19:36:12 +02:00
|
|
|
>new enumdule.Point(0, 0) : enumdule.Point
|
|
|
|
>enumdule.Point : typeof enumdule.Point
|
2014-08-15 23:33:16 +02:00
|
|
|
>enumdule : typeof enumdule
|
2014-08-25 19:36:12 +02:00
|
|
|
>Point : typeof enumdule.Point
|
2014-08-15 23:33:16 +02:00
|
|
|
|