Skip to content

Commit 6d39ad8

Browse files
committed
LKG
1 parent 56ccd41 commit 6d39ad8

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

lib/_tsc.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66934,9 +66934,12 @@ function createTypeChecker(host) {
6693466934
if (relation === identityRelation) {
6693566935
return signaturesIdenticalTo(source2, target2, kind);
6693666936
}
66937-
if (target2 === anyFunctionType || source2 === anyFunctionType) {
66937+
if (source2 === anyFunctionType) {
6693866938
return -1 /* True */;
6693966939
}
66940+
if (target2 === anyFunctionType) {
66941+
return 0 /* False */;
66942+
}
6694066943
const sourceIsJSConstructor = source2.symbol && isJSConstructor(source2.symbol.valueDeclaration);
6694166944
const targetIsJSConstructor = target2.symbol && isJSConstructor(target2.symbol.valueDeclaration);
6694266945
const sourceSignatures = getSignaturesOfType(
@@ -74465,7 +74468,7 @@ function createTypeChecker(host) {
7446574468
spread,
7446674469
createAnonymousType(attributesSymbol, childPropMap, emptyArray, emptyArray, emptyArray),
7446774470
attributesSymbol,
74468-
objectFlags,
74471+
objectFlags | getPropagatingFlagsOfTypes(childrenTypes),
7446974472
/*readonly*/
7447074473
false
7447174474
);

lib/typescript.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71569,9 +71569,12 @@ function createTypeChecker(host) {
7156971569
if (relation === identityRelation) {
7157071570
return signaturesIdenticalTo(source2, target2, kind);
7157171571
}
71572-
if (target2 === anyFunctionType || source2 === anyFunctionType) {
71572+
if (source2 === anyFunctionType) {
7157371573
return -1 /* True */;
7157471574
}
71575+
if (target2 === anyFunctionType) {
71576+
return 0 /* False */;
71577+
}
7157571578
const sourceIsJSConstructor = source2.symbol && isJSConstructor(source2.symbol.valueDeclaration);
7157671579
const targetIsJSConstructor = target2.symbol && isJSConstructor(target2.symbol.valueDeclaration);
7157771580
const sourceSignatures = getSignaturesOfType(
@@ -79100,7 +79103,7 @@ function createTypeChecker(host) {
7910079103
spread,
7910179104
createAnonymousType(attributesSymbol, childPropMap, emptyArray, emptyArray, emptyArray),
7910279105
attributesSymbol,
79103-
objectFlags,
79106+
objectFlags | getPropagatingFlagsOfTypes(childrenTypes),
7910479107
/*readonly*/
7910579108
false
7910679109
);

0 commit comments

Comments
 (0)