TypeScript/tests/baselines/reference/captureThisInSuperCall.types

27 lines
556 B
Plaintext
Raw Normal View History

2014-08-28 01:58:31 +02:00
=== tests/cases/compiler/captureThisInSuperCall.ts ===
class A {
>A : A
2014-08-28 01:58:31 +02:00
constructor(p:any) {}
>p : any
2014-08-28 01:58:31 +02:00
}
class B extends A {
>B : B
>A : A
2014-08-28 01:58:31 +02:00
constructor() { super({ test: () => this.someMethod()}); }
>super({ test: () => this.someMethod()}) : void
>super : typeof A
2014-08-28 01:58:31 +02:00
>{ test: () => this.someMethod()} : { test: () => void; }
>test : () => void
2014-08-28 01:58:31 +02:00
>() => this.someMethod() : () => void
>this.someMethod() : void
>this.someMethod : () => void
>this : B
>someMethod : () => void
2014-08-28 01:58:31 +02:00
someMethod() {}
>someMethod : () => void
2014-08-28 01:58:31 +02:00
}