TypeScript/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.types

37 lines
877 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/internalModules/exportDeclarations/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.ts ===
module A {
>A : typeof A
2014-08-15 23:33:16 +02:00
class Point {
>Point : Point
2014-08-15 23:33:16 +02:00
constructor(public x: number, public y: number) { }
>x : number
>y : number
2014-08-15 23:33:16 +02:00
}
export var Origin: Point = { x: 0, y: 0 };
>Origin : Point
>Point : Point
2014-08-15 23:33:16 +02:00
>{ x: 0, y: 0 } : { x: number; y: number; }
>x : number
2015-04-13 21:36:11 +02:00
>0 : number
>y : number
2015-04-13 21:36:11 +02:00
>0 : number
2014-08-15 23:33:16 +02:00
export var Unity = { start: new Point(0, 0), end: new Point(1, 0) };
>Unity : { start: Point; end: Point; }
2014-08-15 23:33:16 +02:00
>{ start: new Point(0, 0), end: new Point(1, 0) } : { start: Point; end: Point; }
>start : Point
2014-08-15 23:33:16 +02:00
>new Point(0, 0) : Point
>Point : typeof Point
2015-04-13 21:36:11 +02:00
>0 : number
>0 : number
>end : Point
2014-08-15 23:33:16 +02:00
>new Point(1, 0) : Point
>Point : typeof Point
2015-04-13 21:36:11 +02:00
>1 : number
>0 : number
2014-08-15 23:33:16 +02:00
}