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
|
=== tests/cases/compiler/thisCapture1.ts ===
class X {
>X : X
private y = 0;
>y : number
>0 : 0
public getSettings(keys: string[]): any {
>getSettings : (keys: string[]) => any
>keys : string[]
var ret: any;
>ret : any
return ret.always(() => {
>ret.always(() => { this.y = 0; }).promise() : any
>ret.always(() => { this.y = 0; }).promise : any
>ret.always(() => { this.y = 0; }) : any
>ret.always : any
>ret : any
>always : any
>() => { this.y = 0; } : () => void
this.y = 0;
>this.y = 0 : 0
>this.y : number
>this : this
>y : number
>0 : 0
}).promise();
>promise : any
}
}
|