25 lines
703 B
Text
25 lines
703 B
Text
=== tests/cases/compiler/thisCapture1.ts ===
|
|
class X {
|
|
>X : Symbol(X, Decl(thisCapture1.ts, 0, 0))
|
|
|
|
private y = 0;
|
|
>y : Symbol(y, Decl(thisCapture1.ts, 0, 9))
|
|
|
|
public getSettings(keys: string[]): any {
|
|
>getSettings : Symbol(getSettings, Decl(thisCapture1.ts, 1, 18))
|
|
>keys : Symbol(keys, Decl(thisCapture1.ts, 2, 23))
|
|
|
|
var ret: any;
|
|
>ret : Symbol(ret, Decl(thisCapture1.ts, 3, 11))
|
|
|
|
return ret.always(() => {
|
|
>ret : Symbol(ret, Decl(thisCapture1.ts, 3, 11))
|
|
|
|
this.y = 0;
|
|
>this.y : Symbol(y, Decl(thisCapture1.ts, 0, 9))
|
|
>this : Symbol(X, Decl(thisCapture1.ts, 0, 0))
|
|
>y : Symbol(y, Decl(thisCapture1.ts, 0, 9))
|
|
|
|
}).promise();
|
|
}
|
|
}
|