2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/internalModules/DeclarationMerging/function.ts ===
|
|
|
|
module A {
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : typeof A
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export function Point() {
|
2014-08-28 21:52:44 +02:00
|
|
|
>Point : () => { x: number; y: number; }
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return { x: 0, y: 0 };
|
|
|
|
>{ x: 0, y: 0 } : { x: number; y: number; }
|
|
|
|
>x : number
|
|
|
|
>y : number
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/conformance/internalModules/DeclarationMerging/module.ts ===
|
|
|
|
module B {
|
2014-08-28 21:40:58 +02:00
|
|
|
>B : typeof B
|
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 = { x: 0, y: 0 };
|
|
|
|
>Origin : { x: number; y: number; }
|
|
|
|
>{ x: 0, y: 0 } : { x: number; y: number; }
|
|
|
|
>x : number
|
|
|
|
>y : number
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/conformance/internalModules/DeclarationMerging/test.ts ===
|
|
|
|
var fn: () => { x: number; y: number };
|
|
|
|
>fn : () => { x: number; y: number; }
|
|
|
|
>x : number
|
|
|
|
>y : number
|
|
|
|
|
|
|
|
var fn = A.Point;
|
|
|
|
>fn : () => { x: number; y: number; }
|
2014-08-28 21:52:44 +02:00
|
|
|
>A.Point : () => { x: number; y: number; }
|
2014-08-15 23:33:16 +02:00
|
|
|
>A : typeof A
|
2014-08-28 21:52:44 +02:00
|
|
|
>Point : () => { x: number; y: number; }
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var cl: { x: number; y: number; }
|
|
|
|
>cl : { x: number; y: number; }
|
|
|
|
>x : number
|
|
|
|
>y : number
|
|
|
|
|
|
|
|
var cl = B.Point.Origin;
|
|
|
|
>cl : { x: number; y: number; }
|
|
|
|
>B.Point.Origin : { x: number; y: number; }
|
2014-08-25 19:36:12 +02:00
|
|
|
>B.Point : typeof B.Point
|
2014-08-15 23:33:16 +02:00
|
|
|
>B : typeof B
|
2014-08-25 19:36:12 +02:00
|
|
|
>Point : typeof B.Point
|
2014-08-15 23:33:16 +02:00
|
|
|
>Origin : { x: number; y: number; }
|
|
|
|
|