So my issue is pretty straight forward. I have the following code:
abstract class A {
public abstract fn(): this;
}
class B extends A {
public fn() {
return new B();
}
}
which is supposed to mean that whichever class inherits from A is supposed to return an instance of itself when fn is called but running this code I get an error: Property 'fn' in type 'B' is not assignable to the same property in base type 'A'.