31 lines
385 B
Text
31 lines
385 B
Text
=== 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 : this
|
|
>baz : foo
|
|
>new foo() : foo
|
|
>foo : typeof foo
|
|
|
|
}
|
|
|
|
}
|
|
|
|
class baz {}
|
|
>baz : baz
|
|
|
|
class foo extends baz {}
|
|
>foo : foo
|
|
>baz : baz
|
|
|
|
|
|
|