Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
DCoder
on Jan 29, 2016
|
parent
|
context
|
favorite
| on:
Announcing TypeScript 1.8 Beta
It would not be an error if not for `addToList(cats, new Dog())`. Based on that call, Flow infers that `cats` has to be a `Dog[]`, not `Cat[]`.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: