I have 2 classes X and Y. for some reason the 2 classes are at the same file as follow:
export abstract class Y {
static readonly childVar = new X();
}
export class X extends Y {
}
An error occurs when creating this new object says class X is used before its declaration. Any solutions?