24 lines
841 B
Text
24 lines
841 B
Text
=== tests/cases/compiler/selfInCallback.ts ===
|
|
class C {
|
|
>C : Symbol(C, Decl(selfInCallback.ts, 0, 0))
|
|
|
|
public p1 = 0;
|
|
>p1 : Symbol(C.p1, Decl(selfInCallback.ts, 0, 9))
|
|
|
|
public callback(cb:()=>void) {cb();}
|
|
>callback : Symbol(C.callback, Decl(selfInCallback.ts, 1, 15))
|
|
>cb : Symbol(cb, Decl(selfInCallback.ts, 2, 17))
|
|
>cb : Symbol(cb, Decl(selfInCallback.ts, 2, 17))
|
|
|
|
public doit() {
|
|
>doit : Symbol(C.doit, Decl(selfInCallback.ts, 2, 37))
|
|
|
|
this.callback(()=>{this.p1+1});
|
|
>this.callback : Symbol(C.callback, Decl(selfInCallback.ts, 1, 15))
|
|
>this : Symbol(C, Decl(selfInCallback.ts, 0, 0))
|
|
>callback : Symbol(C.callback, Decl(selfInCallback.ts, 1, 15))
|
|
>this.p1 : Symbol(C.p1, Decl(selfInCallback.ts, 0, 9))
|
|
>this : Symbol(C, Decl(selfInCallback.ts, 0, 0))
|
|
>p1 : Symbol(C.p1, Decl(selfInCallback.ts, 0, 9))
|
|
}
|
|
}
|