42 lines
730 B
Text
42 lines
730 B
Text
|
=== tests/cases/compiler/thisCapture1.ts ===
|
||
|
class X {
|
||
|
>X : X
|
||
|
|
||
|
private y = 0;
|
||
|
>y : number
|
||
|
|
||
|
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 : number
|
||
|
>this.y : number
|
||
|
>this : X
|
||
|
>y : number
|
||
|
|
||
|
}).promise();
|
||
|
>promise : any
|
||
|
}
|
||
|
}
|