TypeScript/tests/baselines/reference/superAccessInFatArrow1.types

40 lines
789 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/superAccessInFatArrow1.ts ===
module test {
>test : typeof test
2014-08-15 23:33:16 +02:00
export class A {
>A : A
2014-08-15 23:33:16 +02:00
foo() {
>foo : () => void
2014-08-15 23:33:16 +02:00
}
}
export class B extends A {
>B : B
>A : A
2014-08-15 23:33:16 +02:00
bar(callback: () => void ) {
>bar : (callback: () => void) => void
>callback : () => void
2014-08-15 23:33:16 +02:00
}
runme() {
>runme : () => void
2014-08-15 23:33:16 +02:00
this.bar(() => {
2014-08-22 03:39:46 +02:00
>this.bar(() => { super.foo(); }) : void
>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
>super : A
>foo : () => void
2014-08-15 23:33:16 +02:00
});
}
}
}