TypeScript/tests/baselines/reference/captureThisInSuperCall.types
2014-08-28 12:31:37 -07:00

27 lines
556 B
Plaintext

=== tests/cases/compiler/captureThisInSuperCall.ts ===
class A {
>A : A
constructor(p:any) {}
>p : any
}
class B extends A {
>B : B
>A : A
constructor() { super({ test: () => this.someMethod()}); }
>super({ test: () => this.someMethod()}) : void
>super : typeof A
>{ test: () => this.someMethod()} : { test: () => void; }
>test : () => void
>() => this.someMethod() : () => void
>this.someMethod() : void
>this.someMethod : () => void
>this : B
>someMethod : () => void
someMethod() {}
>someMethod : () => void
}