Microsoft/TypeScript — pull request #1035 by ahejlsberg (2014-11-02 23:17:27+00:00)
Title: Improved type inference (fixes #1011)

This PR changes type inference to consider inferences made *to* a type parameter in a union type to be secondary to inferences made directly *to* that same type parameter. See the discussion on #1011 for further details.