Skip to content

Commit d5e0701

Browse files
committed
check.ts dcheck fix
1 parent f49ff0c commit d5e0701

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/checker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14767,20 +14767,20 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
1476714767
let result = carveoutResult(type, kind);
1476814768
if (result) return result;
1476914769
// The original logical for the non-carveout case is recorded in the block comment below, for the record.
14770-
//result = getSignaturesOfStructuredType(getReducedApparentType(type), kind);
14770+
// result = getSignaturesOfStructuredType(getReducedApparentType(type), kind);
1477114771
// if (kind === SignatureKind.Call && !length(result) && type.flags & TypeFlags.Union) {
1477214772
// if ((type as UnionType).arrayFallbackSignatures) {
1477314773
// return (type as UnionType).arrayFallbackSignatures!;
1477414774
// }
1477514775
// return (type as UnionType).arrayFallbackSignatures = result;
1477614776
// }
14777-
if (kind === SignatureKind.Call && /*!length(result) && */ type.flags & TypeFlags.Union) {
14777+
if (kind === SignatureKind.Call && type.flags & TypeFlags.Union) {
1477814778
if ((type as UnionType).arrayFallbackSignatures) {
1477914779
return (type as UnionType).arrayFallbackSignatures!;
1478014780
}
1478114781
}
1478214782
result = getSignaturesOfStructuredType(getReducedApparentType(type), kind);
14783-
if (kind === SignatureKind.Call && /*!length(result) && */ type.flags & TypeFlags.Union) {
14783+
if (kind === SignatureKind.Call && type.flags & TypeFlags.Union) {
1478414784
(type as UnionType).arrayFallbackSignatures = result;
1478514785
}
1478614786
return result;

0 commit comments

Comments
 (0)