2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/classOrderBug.ts ===
|
|
|
|
class bar {
|
2015-04-13 23:01:57 +02:00
|
|
|
>bar : bar, Symbol(bar, Decl(classOrderBug.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
public baz: foo;
|
2015-04-13 23:01:57 +02:00
|
|
|
>baz : foo, Symbol(baz, Decl(classOrderBug.ts, 0, 11))
|
|
|
|
>foo : foo, Symbol(foo, Decl(classOrderBug.ts, 10, 12))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
constructor() {
|
|
|
|
|
|
|
|
this.baz = new foo();
|
|
|
|
>this.baz = new foo() : foo
|
2015-04-13 23:01:57 +02:00
|
|
|
>this.baz : foo, Symbol(baz, Decl(classOrderBug.ts, 0, 11))
|
|
|
|
>this : bar, Symbol(bar, Decl(classOrderBug.ts, 0, 0))
|
|
|
|
>baz : foo, Symbol(baz, Decl(classOrderBug.ts, 0, 11))
|
2014-08-15 23:33:16 +02:00
|
|
|
>new foo() : foo
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : typeof foo, Symbol(foo, Decl(classOrderBug.ts, 10, 12))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
class baz {}
|
2015-04-13 23:01:57 +02:00
|
|
|
>baz : baz, Symbol(baz, Decl(classOrderBug.ts, 8, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
class foo extends baz {}
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : foo, Symbol(foo, Decl(classOrderBug.ts, 10, 12))
|
|
|
|
>baz : baz, Symbol(baz, Decl(classOrderBug.ts, 8, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|