-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heli.Create should return type Heli #93
Labels
type:bug
Something isn't working
Comments
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 let heli = new Heli(Car.Create(....)); same is true for other derived classes (Boat, Tank, Plane, etc) |
Fixed in 1.2.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
currently returns Car
The text was updated successfully, but these errors were encountered: