TypeScript/tests/cases/conformance/types/intersection
Nathan Shively-Sanders d572dcb272
Fix crash intersecting dynamic import w/esModuleInterop (#40249)
* Fix crash intersecting dynamic import w/esModuleInterop

The dynamic import shim creates a symbol without some properties that
the intersection-creating code assumes are present as of #38673.

This PR adds the smallest possible set of properties to avoid the crash.
I'm not sure what others would be good to add.

* Use symbol's declarations instead

* Fix getResolvedMembersOrExportsOfSymbol instead

* comment from code review
2020-09-01 09:10:36 -07:00
..
commonTypeIntersection.ts Add isIntersectionConstituent to relation key (#34789) 2019-10-29 15:08:59 -07:00
contextualIntersectionType.ts
intersectionAndUnionTypes.ts
intersectionAsWeakTypeSource.ts Allow weak type detection for intersection sources (#26668) 2018-08-24 10:30:39 -07:00
intersectionMemberOfUnionNarrowsCorrectly.ts Add isIntersectionConstituent to relation key (#34789) 2019-10-29 15:08:59 -07:00
intersectionOfUnionOfUnitTypes.ts Add tests 2017-09-13 06:37:59 -07:00
intersectionReduction.ts Perform intersection reduction before and after getApparentType (#38565) 2020-05-13 20:57:17 -07:00
intersectionReductionStrict.ts Reduce intersections by discriminants (#36696) 2020-02-28 17:06:44 -08:00
intersectionsAndEmptyObjects.ts Fix crash intersecting dynamic import w/esModuleInterop (#40249) 2020-09-01 09:10:36 -07:00
intersectionThisTypes.ts Add tests 2017-01-21 13:07:06 -08:00
intersectionTypeAssignment.ts
intersectionTypeEquivalence.ts
intersectionTypeInference.ts
intersectionTypeInference2.ts Update tests 2019-06-09 08:00:01 -07:00
intersectionTypeInference3.ts Add regression tests 2017-11-02 17:31:17 -07:00
intersectionTypeMembers.ts Defer union or intersection property type normalization (#31486) 2019-05-28 10:51:47 -07:00
intersectionTypeOverloading.ts
intersectionTypeReadonly.ts
intersectionWithIndexSignatures.ts Check combined intersection properties against target index signatures (#35143) 2020-01-10 10:46:10 -08:00
intersectionWithUnionConstraint.ts Add regression test 2019-04-13 08:24:27 -10:00
operatorsAndIntersectionTypes.ts
recursiveIntersectionTypes.ts