Skip to content

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

Closed
@JsonFreeman

Description

@JsonFreeman

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.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issueSpecIssues related to the TypeScript language specification

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions