diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 36cf9aa947..0bc9cd7600 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -11778,6 +11778,9 @@ namespace ts { } return Ternary.False; } + if (relation === definitelyAssignableRelation && isGenericMappedType(source)) { + return Ternary.False; + } const sourceIsPrimitive = !!(source.flags & TypeFlags.Primitive); if (relation !== identityRelation) { source = getApparentType(source);