26 lines
556 B
Text
26 lines
556 B
Text
=== 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
|
|
}
|