TypeScript/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.types

67 lines
3.6 KiB
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/internalModules/exportDeclarations/ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts ===
module A {
>A : typeof A, Symbol(A,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,0,0))
2014-08-15 23:33:16 +02:00
class Point {
>Point : Point, Symbol(Point,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,0,10))
2014-08-15 23:33:16 +02:00
x: number;
>x : number, Symbol(x,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,2,17))
2014-08-15 23:33:16 +02:00
y: number;
>y : number, Symbol(y,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,3,18))
2014-08-15 23:33:16 +02:00
}
export var Origin: Point = { x: 0, y: 0 };
>Origin : Point, Symbol(Origin,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,7,14))
>Point : Point, Symbol(Point,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,0,10))
2014-08-15 23:33:16 +02:00
>{ x: 0, y: 0 } : { x: number; y: number; }
>x : number, Symbol(x,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,7,32))
2015-04-13 21:36:11 +02:00
>0 : number
>y : number, Symbol(y,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,7,38))
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, Symbol(Point3d,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,7,46))
>Point : Point, Symbol(Point,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,0,10))
2014-08-15 23:33:16 +02:00
z: number;
>z : number, Symbol(z,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,9,40))
2014-08-15 23:33:16 +02:00
}
export var Origin3d: Point3d = { x: 0, y: 0, z: 0 };
>Origin3d : Point3d, Symbol(Origin3d,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,13,14))
>Point3d : Point3d, Symbol(Point3d,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,7,46))
2014-08-15 23:33:16 +02:00
>{ x: 0, y: 0, z: 0 } : { x: number; y: number; z: number; }
>x : number, Symbol(x,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,13,36))
2015-04-13 21:36:11 +02:00
>0 : number
>y : number, Symbol(y,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,13,42))
2015-04-13 21:36:11 +02:00
>0 : number
>z : number, Symbol(z,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,13,48))
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>, Symbol(Line,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,13,56))
>TPoint : TPoint, Symbol(TPoint,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,15,22))
>Point : Point, Symbol(Point,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,0,10))
2014-08-15 23:33:16 +02:00
constructor(public start: TPoint, public end: TPoint) { }
>start : TPoint, Symbol(start,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,16,20))
>TPoint : TPoint, Symbol(TPoint,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,15,22))
>end : TPoint, Symbol(end,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,16,41))
>TPoint : TPoint, Symbol(TPoint,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,15,22))
2014-08-15 23:33:16 +02:00
static fromorigin2d(p: Point): Line<Point>{
>fromorigin2d : (p: Point) => Line<Point>, Symbol(Line.fromorigin2d,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,16,65))
>p : Point, Symbol(p,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,18,28))
>Point : Point, Symbol(Point,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,0,10))
>Line : Line<TPoint>, Symbol(Line,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,13,56))
>Point : Point, Symbol(Point,Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts,0,10))
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
}
}
}