2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/internalModules/DeclarationMerging/module.d.ts ===
|
|
|
|
declare module A {
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : typeof A
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export module Point {
|
2014-08-28 21:40:58 +02:00
|
|
|
>Point : typeof Point
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var Origin: {
|
|
|
|
>Origin : { x: number; y: number; }
|
|
|
|
|
|
|
|
x: number;
|
|
|
|
>x : number
|
|
|
|
|
|
|
|
y: number;
|
|
|
|
>y : number
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/conformance/internalModules/DeclarationMerging/class.d.ts ===
|
|
|
|
declare module A {
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : typeof A
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class Point {
|
|
|
|
>Point : Point
|
|
|
|
|
|
|
|
constructor(x: number, y: number);
|
|
|
|
>x : number
|
|
|
|
>y : number
|
|
|
|
|
|
|
|
x: number;
|
|
|
|
>x : number
|
|
|
|
|
|
|
|
y: number;
|
|
|
|
>y : number
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/conformance/internalModules/DeclarationMerging/test.ts ===
|
|
|
|
var p: { x: number; y: number; }
|
|
|
|
>p : { x: number; y: number; }
|
|
|
|
>x : number
|
|
|
|
>y : number
|
|
|
|
|
|
|
|
var p = A.Point.Origin;
|
|
|
|
>p : { x: number; y: number; }
|
|
|
|
>A.Point.Origin : { x: number; y: number; }
|
2014-08-25 19:36:12 +02:00
|
|
|
>A.Point : typeof A.Point
|
2014-08-15 23:33:16 +02:00
|
|
|
>A : typeof A
|
2014-08-25 19:36:12 +02:00
|
|
|
>Point : typeof A.Point
|
2014-08-15 23:33:16 +02:00
|
|
|
>Origin : { x: number; y: number; }
|
|
|
|
|
|
|
|
var p = new A.Point(0, 0); // unexpected error here, bug 840000
|
|
|
|
>p : { x: number; y: number; }
|
2014-08-25 19:36:12 +02:00
|
|
|
>new A.Point(0, 0) : A.Point
|
|
|
|
>A.Point : typeof A.Point
|
2014-08-15 23:33:16 +02:00
|
|
|
>A : typeof A
|
2014-08-25 19:36:12 +02:00
|
|
|
>Point : typeof A.Point
|
2014-08-15 23:33:16 +02:00
|
|
|
|