diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 2feb6b3f9c3cd..71dc4ec826e2c 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -8685,13 +8685,6 @@ namespace ts { inferFromTypes(getUnionType(map(getPropertiesOfType(source), getTypeOfSymbol)), getTemplateTypeFromMappedType(target)); return; } - if (getObjectFlags(source) & ObjectFlags.Mapped) { - // We're inferring from a mapped type to a mapped type, so simply infer from constraint type to - // constraint type and from template type to template type. - inferFromTypes(getConstraintTypeFromMappedType(source), constraintType); - inferFromTypes(getTemplateTypeFromMappedType(source), getTemplateTypeFromMappedType(target)); - return; - } } inferFromProperties(source, target); inferFromSignatures(source, target, SignatureKind.Call);