45 lines
2.1 KiB
Text
45 lines
2.1 KiB
Text
=== tests/cases/conformance/internalModules/exportDeclarations/ExportVariableWithInaccessibleTypeInTypeAnnotation.ts ===
|
|
module A {
|
|
>A : typeof A, Symbol(A,Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts,0,0))
|
|
|
|
export interface Point {
|
|
>Point : Point, Symbol(Point,Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts,0,10))
|
|
|
|
x: number;
|
|
>x : number, Symbol(x,Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts,2,28))
|
|
|
|
y: number;
|
|
>y : number, Symbol(y,Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts,3,18))
|
|
}
|
|
|
|
// valid since Point is exported
|
|
export var Origin: Point = { x: 0, y: 0 };
|
|
>Origin : Point, Symbol(Origin,Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts,8,14))
|
|
>Point : Point, Symbol(Point,Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts,0,10))
|
|
>{ x: 0, y: 0 } : { x: number; y: number; }
|
|
>x : number, Symbol(x,Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts,8,32))
|
|
>0 : number
|
|
>y : number, Symbol(y,Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts,8,38))
|
|
>0 : number
|
|
|
|
interface Point3d extends Point {
|
|
>Point3d : Point3d, Symbol(Point3d,Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts,8,46))
|
|
>Point : Point, Symbol(Point,Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts,0,10))
|
|
|
|
z: number;
|
|
>z : number, Symbol(z,Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts,10,37))
|
|
}
|
|
|
|
// invalid Point3d is not exported
|
|
export var Origin3d: Point3d = { x: 0, y: 0, z: 0 };
|
|
>Origin3d : Point3d, Symbol(Origin3d,Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts,15,14))
|
|
>Point3d : Point3d, Symbol(Point3d,Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts,8,46))
|
|
>{ x: 0, y: 0, z: 0 } : { x: number; y: number; z: number; }
|
|
>x : number, Symbol(x,Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts,15,36))
|
|
>0 : number
|
|
>y : number, Symbol(y,Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts,15,42))
|
|
>0 : number
|
|
>z : number, Symbol(z,Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts,15,48))
|
|
>0 : number
|
|
}
|
|
|