36 lines
410 B
Text
36 lines
410 B
Text
|
=== tests/cases/compiler/classOrder2.ts ===
|
||
|
class A extends B {
|
||
|
>A : A
|
||
|
>B : B
|
||
|
|
||
|
foo() { this.bar(); }
|
||
|
>foo : () => void
|
||
|
>this.bar() : void
|
||
|
>this.bar : () => void
|
||
|
>this : this
|
||
|
>bar : () => void
|
||
|
|
||
|
}
|
||
|
|
||
|
class B {
|
||
|
>B : B
|
||
|
|
||
|
bar() { }
|
||
|
>bar : () => void
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
var a = new A();
|
||
|
>a : A
|
||
|
>new A() : A
|
||
|
>A : typeof A
|
||
|
|
||
|
a.foo();
|
||
|
>a.foo() : void
|
||
|
>a.foo : () => void
|
||
|
>a : A
|
||
|
>foo : () => void
|
||
|
|
||
|
|