TypeScript/tests/baselines/reference/accessOverriddenBaseClassMember1.types

58 lines
1.2 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/accessOverriddenBaseClassMember1.ts ===
class Point {
>Point : Point
2014-08-15 23:33:16 +02:00
constructor(public x: number, public y: number) { }
>x : number
>y : number
2014-08-15 23:33:16 +02:00
public toString() {
>toString : () => string
2014-08-15 23:33:16 +02:00
return "x=" + this.x + " y=" + this.y;
>"x=" + this.x + " y=" + this.y : string
>"x=" + this.x + " y=" : string
>"x=" + this.x : string
2015-04-13 21:36:11 +02:00
>"x=" : string
>this.x : number
>this : Point
>x : number
2015-04-13 21:36:11 +02:00
>" y=" : string
>this.y : number
>this : Point
>y : number
2014-08-15 23:33:16 +02:00
}
}
class ColoredPoint extends Point {
>ColoredPoint : ColoredPoint
>Point : Point
2014-08-15 23:33:16 +02:00
constructor(x: number, y: number, public color: string) {
>x : number
>y : number
>color : string
2014-08-15 23:33:16 +02:00
super(x, y);
>super(x, y) : void
>super : typeof Point
>x : number
>y : number
2014-08-15 23:33:16 +02:00
}
public toString() {
>toString : () => string
2014-08-15 23:33:16 +02:00
return super.toString() + " color=" + this.color;
>super.toString() + " color=" + this.color : string
>super.toString() + " color=" : string
>super.toString() : string
>super.toString : () => string
>super : Point
>toString : () => string
2015-04-13 21:36:11 +02:00
>" color=" : string
>this.color : string
>this : ColoredPoint
>color : string
2014-08-15 23:33:16 +02:00
}
}