Closed x87 closed 1 year ago
https://github.com/Microsoft/TypeScript/issues/5863
edit: in fact, it is not a type-only issue as the inherited static Create returns an instance of the parent class (i.e. Car).
workaround: wrap in new Heli
let heli = new Heli(Car.Create(....));
same is true for other derived classes (Boat, Tank, Plane, etc)
Fixed in 1.2.0
currently returns Car