TypeScript/tests/baselines/reference/ExportVariableWithInaccessibleTypeInTypeAnnotation.types

46 lines
2.1 KiB
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/internalModules/exportDeclarations/ExportVariableWithInaccessibleTypeInTypeAnnotation.ts ===
module A {
2015-04-13 23:01:57 +02:00
>A : typeof A, Symbol(A, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 0, 0))
2014-08-15 23:33:16 +02:00
export interface Point {
2015-04-13 23:01:57 +02:00
>Point : Point, Symbol(Point, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 0, 10))
2014-08-15 23:33:16 +02:00
x: number;
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 2, 28))
2014-08-15 23:33:16 +02:00
y: number;
2015-04-13 23:01:57 +02:00
>y : number, Symbol(y, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 3, 18))
2014-08-15 23:33:16 +02:00
}
// valid since Point is exported
export var Origin: Point = { x: 0, y: 0 };
2015-04-13 23:01:57 +02:00
>Origin : Point, Symbol(Origin, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 8, 14))
>Point : Point, Symbol(Point, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 0, 10))
2014-08-15 23:33:16 +02:00
>{ x: 0, y: 0 } : { x: number; y: number; }
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 8, 32))
2015-04-13 21:36:11 +02:00
>0 : number
2015-04-13 23:01:57 +02:00
>y : number, Symbol(y, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 8, 38))
2015-04-13 21:36:11 +02:00
>0 : number
2014-08-15 23:33:16 +02:00
interface Point3d extends Point {
2015-04-13 23:01:57 +02:00
>Point3d : Point3d, Symbol(Point3d, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 8, 46))
>Point : Point, Symbol(Point, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 0, 10))
2014-08-15 23:33:16 +02:00
z: number;
2015-04-13 23:01:57 +02:00
>z : number, Symbol(z, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 10, 37))
2014-08-15 23:33:16 +02:00
}
// invalid Point3d is not exported
export var Origin3d: Point3d = { x: 0, y: 0, z: 0 };
2015-04-13 23:01:57 +02:00
>Origin3d : Point3d, Symbol(Origin3d, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 15, 14))
>Point3d : Point3d, Symbol(Point3d, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 8, 46))
2014-08-15 23:33:16 +02:00
>{ x: 0, y: 0, z: 0 } : { x: number; y: number; z: number; }
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 15, 36))
2015-04-13 21:36:11 +02:00
>0 : number
2015-04-13 23:01:57 +02:00
>y : number, Symbol(y, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 15, 42))
2015-04-13 21:36:11 +02:00
>0 : number
2015-04-13 23:01:57 +02:00
>z : number, Symbol(z, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 15, 48))
2015-04-13 21:36:11 +02:00
>0 : number
2014-08-15 23:33:16 +02:00
}