TypeScript/tests/baselines/reference/ExportVariableWithInaccessibleTypeInTypeAnnotation.types

46 lines
897 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/internalModules/exportDeclarations/ExportVariableWithInaccessibleTypeInTypeAnnotation.ts ===
module A {
>A : typeof A
2014-08-15 23:33:16 +02:00
export interface Point {
>Point : Point
2014-08-15 23:33:16 +02:00
x: number;
>x : number
2014-08-15 23:33:16 +02:00
y: number;
>y : number
2014-08-15 23:33:16 +02:00
}
// valid since Point is exported
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
interface Point3d extends Point {
>Point3d : Point3d
>Point : Point
2014-08-15 23:33:16 +02:00
z: number;
>z : number
2014-08-15 23:33:16 +02:00
}
// invalid Point3d is not exported
export var Origin3d: Point3d = { x: 0, y: 0, z: 0 };
>Origin3d : Point3d
>Point3d : Point3d
2014-08-15 23:33:16 +02:00
>{ x: 0, y: 0, z: 0 } : { x: number; y: number; z: 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
>z : number
2015-04-13 21:36:11 +02:00
>0 : number
2014-08-15 23:33:16 +02:00
}