TypeScript/tests/cases/compiler/scopeCheckClassProperty.ts
Nathan Shively-Sanders f65819a253 Test:props of class A are usable in prop initialisers of class B
Regardless of order of class A and class B
2017-03-31 12:05:12 -07:00

10 lines
129 B
TypeScript

class C {
constructor() {
new A().p; // ok
}
public x = new A().p; // should also be ok
}
class A {
public p = '';
}