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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
=== tests/cases/conformance/classes/propertyMemberDeclarations/defineProperty.ts ===
var x: "p" = "p"
>x : "p"
>"p" : "p"
class A {
>A : A
a = this.y
>a : number
>this.y : number
>this : this
>y : number
b
>b : any
public c;
>c : any
["computed"] = 13
>["computed"] : number
>"computed" : "computed"
>13 : 13
;[x] = 14
>[x] : number
>x : "p"
>14 : 14
m() { }
>m : () => void
constructor(public readonly y: number) { }
>y : number
z = this.y
>z : number
>this.y : number
>this : this
>y : number
declare notEmitted;
>notEmitted : any
}
class B {
>B : B
public a;
>a : any
}
class C extends B {
>C : C
>B : B
declare public a;
>a : any
z = this.ka
>z : number
>this.ka : number
>this : this
>ka : number
constructor(public ka: number) {
>ka : number
super()
>super() : void
>super : typeof B
}
ki = this.ka
>ki : number
>this.ka : number
>this : this
>ka : number
}
|