TypeScript/tests/cases/conformance/types/spread
Nathan Shively-Sanders b481dd4d4b
More precise property-overwritten-by-spread errors (#37192)
* More precise property-overwritten-by-spread errors

Trying to do this check in getSpreadType just doesn't have enough
information, so I moved it to checkObjectLiteral, which is a better
place for issuing errors anyway.

Unfortunately, the approach is kind of expensive in that it

1. creates a new map for each property and
2. iterates over all properties of the spread type, even if it's a
union.

I have some ideas to improve (1) that might work out. I'm not sure how
bad (2) is since we're going to iterate over all properties of all
constituents of a union.

Fixes #36779

* another test and rename
2020-03-03 15:10:19 -08:00
..
objectSpread.ts Error when property is specified more than once via a spread (#36727) 2020-02-11 10:23:15 -08:00
objectSpreadComputedProperty.ts
objectSpreadIndexSignature.ts
objectSpreadNegative.ts Error when property is specified more than once via a spread (#36727) 2020-02-11 10:23:15 -08:00
objectSpreadNegativeParse.ts
objectSpreadNoTransform.ts
objectSpreadRepeatedNullCheckPerf.ts
objectSpreadSetonlyAccessor.ts
objectSpreadStrictNull.ts
spreadContextualTypedBindingPattern.ts
spreadExcessProperty.ts
spreadMethods.ts
spreadNonPrimitive.ts
spreadOverwritesProperty.ts Error when property is specified more than once via a spread (#36727) 2020-02-11 10:23:15 -08:00
spreadOverwritesPropertyStrict.ts More precise property-overwritten-by-spread errors (#37192) 2020-03-03 15:10:19 -08:00
spreadTypeVariable.ts
spreadUnion.ts
spreadUnion2.ts
spreadUnion3.ts