Skip to content

Best common type should pick the first type that is a supertype of all the others #404

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

Closed
JsonFreeman opened this issue Aug 8, 2014 · 0 comments
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue Spec Issues related to the TypeScript language specification

Comments

@JsonFreeman
Copy link
Contributor

We need to align the spec with the new implementation. Section 3.10 should say that we pick the first type that is a supertype of all the others.

Also, fold in the contextual typing rule for Best Common Type.

@mhegazy mhegazy added this to the TypeScript 1.1 milestone Aug 8, 2014
@mhegazy mhegazy added the Bug label Aug 8, 2014
@RyanCavanaugh RyanCavanaugh added the Fixed A PR has been merged for this issue label Sep 11, 2014
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue Spec Issues related to the TypeScript language specification
Projects
None yet
Development

No branches or pull requests

4 participants