TypeScript/tests/cases/conformance/types/union
Anders Hejlsberg 2f0d07c29a
Increase selectivity of subtype relationship for signatures (#35659)
* Increase selectivity of subtype relationship for signatures

* Add regression test

* Accept new baselines

* Use strictSubtypeRelation for union subtype reduction

* (x: number | undefined) -> void is subtype of (x?: number | undefined) => void

* Accept new baselines

* Add tests

* Accept new baselines

* Address CR feedback

* Fix parameter list length check

* Accept API baseline changes
2019-12-20 14:52:22 -08:00
..
contextualTypeWithUnionTypeCallSignatures.ts
contextualTypeWithUnionTypeIndexSignatures.ts
contextualTypeWithUnionTypeMembers.ts
contextualTypeWithUnionTypeObjectLiteral.ts
discriminatedUnionTypes1.ts
discriminatedUnionTypes2.ts Fix33448 (#35513) 2019-12-12 06:45:46 -08:00
unionTypeCallSignatures.ts Allow union signatures to merge when they have differing argument counts (#28604) 2018-11-19 17:05:28 -08:00
unionTypeCallSignatures2.ts
unionTypeCallSignatures3.ts
unionTypeCallSignatures4.ts Allow union signatures to merge when they have differing argument counts (#28604) 2018-11-19 17:05:28 -08:00
unionTypeCallSignatures5.ts Don’t crash when creating a union signature from signatures that do and don’t have this types 2019-05-22 17:42:05 -07:00
unionTypeCallSignatures6.ts Intersect 'this' types in union signatures (#32538) 2019-07-26 14:56:03 -07:00
unionTypeConstructSignatures.ts Allow union signatures to merge when they have differing argument counts (#28604) 2018-11-19 17:05:28 -08:00
unionTypeEquivalence.ts
unionTypeFromArrayLiteral.ts
unionTypeIndexSignature.ts
unionTypeMembers.ts
unionTypePropertyAccessibility.ts
unionTypeReadonly.ts
unionTypeReduction.ts
unionTypeReduction2.ts Increase selectivity of subtype relationship for signatures (#35659) 2019-12-20 14:52:22 -08:00
unionTypeWithIndexSignature.ts