1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
=== tests/cases/compiler/accessOverriddenBaseClassMember1.ts ===
class Point {
>Point : Point
constructor(public x: number, public y: number) { }
>x : number
>y : number
public toString() {
>toString : () => string
return "x=" + this.x + " y=" + this.y;
>"x=" + this.x + " y=" + this.y : string
>"x=" + this.x + " y=" : string
>"x=" + this.x : string
>"x=" : "x="
>this.x : number
>this : this
>x : number
>" y=" : " y="
>this.y : number
>this : this
>y : number
}
}
class ColoredPoint extends Point {
>ColoredPoint : ColoredPoint
>Point : Point
constructor(x: number, y: number, public color: string) {
>x : number
>y : number
>color : string
super(x, y);
>super(x, y) : void
>super : typeof Point
>x : number
>y : number
}
public toString() {
>toString : () => string
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
>" color=" : " color="
>this.color : string
>this : this
>color : string
}
}
|