TypeScript/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.types

67 lines
1.3 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/internalModules/exportDeclarations/ExportClassWithInaccessibleTypeInTypeParameterConstraint.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
x: number;
>x : number
2014-08-15 23:33:16 +02:00
y: 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 class 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
}
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
export class Line<TPoint extends Point>{
>Line : Line<TPoint>
>TPoint : TPoint
>Point : Point
2014-08-15 23:33:16 +02:00
constructor(public start: TPoint, public end: TPoint) { }
>start : TPoint
>TPoint : TPoint
>end : TPoint
>TPoint : TPoint
2014-08-15 23:33:16 +02:00
static fromorigin2d(p: Point): Line<Point>{
>fromorigin2d : (p: Point) => Line<Point>
>p : Point
>Point : Point
>Line : Line<TPoint>
>Point : Point
2014-08-15 23:33:16 +02:00
return null;
2015-04-13 21:36:11 +02:00
>null : null
2014-08-15 23:33:16 +02:00
}
}
}