2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/superAccessInFatArrow1.ts ===
|
|
|
|
module test {
|
2014-08-25 19:36:12 +02:00
|
|
|
>test : test
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class A {
|
|
|
|
>A : A
|
|
|
|
|
|
|
|
foo() {
|
|
|
|
>foo : () => void
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export class B extends A {
|
|
|
|
>B : B
|
|
|
|
>A : A
|
|
|
|
|
|
|
|
bar(callback: () => void ) {
|
|
|
|
>bar : (callback: () => void) => void
|
|
|
|
>callback : () => void
|
|
|
|
}
|
|
|
|
runme() {
|
|
|
|
>runme : () => void
|
|
|
|
|
|
|
|
this.bar(() => {
|
2014-08-22 03:39:46 +02:00
|
|
|
>this.bar(() => { super.foo(); }) : void
|
2014-08-15 23:33:16 +02:00
|
|
|
>this.bar : (callback: () => void) => void
|
|
|
|
>this : B
|
|
|
|
>bar : (callback: () => void) => void
|
2014-08-22 03:39:46 +02:00
|
|
|
>() => { super.foo(); } : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
super.foo();
|
|
|
|
>super.foo() : void
|
|
|
|
>super.foo : () => void
|
2014-08-28 21:31:37 +02:00
|
|
|
>super : A
|
2014-08-15 23:33:16 +02:00
|
|
|
>foo : () => void
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|