mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Port microsoft/typescript-go#1764 (#62510)
This commit is contained in:
@@ -24457,7 +24457,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
}
|
||||
return Ternary.False;
|
||||
}
|
||||
if (getObjectFlags(target) & ObjectFlags.FreshLiteral) {
|
||||
if (isObjectLiteralType(target)) {
|
||||
for (const sourceProp of excludeProperties(getPropertiesOfType(source), excludedProperties)) {
|
||||
if (!getPropertyOfObjectType(target, sourceProp.escapedName)) {
|
||||
if (reportErrors) {
|
||||
|
||||
Reference in New Issue
Block a user