File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8564,9 +8564,9 @@ namespace ts {
8564
8564
return instantiateSignature(signature, createTypeEraser(signature.typeParameters!), /*eraseTypeParameters*/ true);
8565
8565
}
8566
8566
8567
- function getConstrainedSignature (signature: Signature): Signature {
8567
+ function getBaseSignature (signature: Signature): Signature {
8568
8568
return signature.typeParameters ?
8569
- signature.constrainedSignatureCache || (signature.constrainedSignatureCache = getBaseSignature (signature)) :
8569
+ signature.baseSignatureCache || (signature.baseSignatureCache = createBaseSignature (signature)) :
8570
8570
signature;
8571
8571
}
8572
8572
@@ -8589,7 +8589,7 @@ namespace ts {
8589
8589
isInJSFile(signature.declaration));
8590
8590
}
8591
8591
8592
- function getBaseSignature (signature: Signature) {
8592
+ function createBaseSignature (signature: Signature) {
8593
8593
const typeParameters = signature.typeParameters;
8594
8594
if (typeParameters) {
8595
8595
const typeEraser = createTypeEraser(typeParameters);
@@ -13922,8 +13922,8 @@ namespace ts {
13922
13922
}
13923
13923
// Spec 1.0 Section 3.8.3 & 3.8.4:
13924
13924
// M and N (the signatures) are instantiated using type Any as the type argument for all type parameters declared by M and N
13925
- source = getConstrainedSignature (source);
13926
- target = getConstrainedSignature (target);
13925
+ source = getBaseSignature (source);
13926
+ target = getBaseSignature (target);
13927
13927
let result = Ternary.True;
13928
13928
13929
13929
if (!ignoreThisTypes) {
Original file line number Diff line number Diff line change @@ -4383,7 +4383,7 @@ namespace ts {
4383
4383
/* @internal */
4384
4384
erasedSignatureCache ?: Signature ; // Erased version of signature (to any) (deferred)
4385
4385
/* @internal */
4386
- constrainedSignatureCache ?: Signature ; // Erased version of signature (to constraints) (deferred)
4386
+ baseSignatureCache ?: Signature ; // Erased version of signature (to constraints) (deferred)
4387
4387
/* @internal */
4388
4388
canonicalSignatureCache ?: Signature ; // Canonical version of signature (deferred)
4389
4389
/* @internal */
You can’t perform that action at this time.
0 commit comments