32 lines
384 B
Plaintext
32 lines
384 B
Plaintext
|
=== tests/cases/compiler/classOrderBug.ts ===
|
||
|
class bar {
|
||
|
>bar : bar
|
||
|
|
||
|
public baz: foo;
|
||
|
>baz : foo
|
||
|
>foo : foo
|
||
|
|
||
|
constructor() {
|
||
|
|
||
|
this.baz = new foo();
|
||
|
>this.baz = new foo() : foo
|
||
|
>this.baz : foo
|
||
|
>this : bar
|
||
|
>baz : foo
|
||
|
>new foo() : foo
|
||
|
>foo : typeof foo
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
class baz {}
|
||
|
>baz : baz
|
||
|
|
||
|
class foo extends baz {}
|
||
|
>foo : foo
|
||
|
>baz : baz
|
||
|
|
||
|
|
||
|
|