Union Types by ahejlsberg · Pull Request #824 · microsoft/TypeScript

@ahejlsberg

@lucamorelli mentioned this pull request

Oct 6, 2014

@ahejlsberg

@mhegazy

@mhegazy

@mhegazy

@ahejlsberg

The new baselines all look correct to me, but obviously a number of the
tests need to be updated to reflect union types and the new behavior of
best common type. This commit does not cover that.

@ahejlsberg

@ahejlsberg

The tuple type tests from master need to be updated to reflect the new
best common type behavior from union types. This commit simply accepts
the baselines as they are.

@mhegazy

@mhegazy

Conflicts:
	src/compiler/checker.ts
Lanugage Service support for union types

@ahejlsberg

@ahejlsberg

@ahejlsberg

Conflicts:
	src/compiler/checker.ts
	src/compiler/types.ts
	src/services/services.ts
	tests/baselines/reference/assignmentCompatBetweenTupleAndArray.errors.txt
	tests/baselines/reference/bestCommonTypeOfTuple.types
	tests/baselines/reference/bestCommonTypeOfTuple2.types
	tests/baselines/reference/castingTuple.errors.txt
	tests/baselines/reference/contextualTypeWithTuple.errors.txt
	tests/baselines/reference/genericCallWithTupleType.errors.txt
	tests/baselines/reference/indexerWithTuple.types
	tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.errors.txt

@mhegazy

Conflicts:
	src/compiler/types.ts
	src/services/services.ts

ahejlsberg added a commit that referenced this pull request

Oct 13, 2014

@ahejlsberg

This was referenced

Nov 3, 2014

@iccir iccir mentioned this pull request

Nov 10, 2014

jednano referenced this pull request in postcss/postcss

Aug 3, 2015

@microsoft microsoft locked and limited conversation to collaborators

Jun 18, 2018