@@ -31996,7 +31996,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
3199631996 // If no inferences have been made, and none of the type parameters for which we are inferring
3199731997 // specify default types, nothing is gained from instantiating as type parameters would just be
3199831998 // replaced with their constraints similar to the apparent type.
31999- if (inferenceContext && (contextFlags! & ContextFlags.ContextualSignature || isReturnExpressionLiteralContext(node)) && some(inferenceContext.inferences, hasInferenceCandidatesOrDefault)) {
31999+ if (inferenceContext && (contextFlags! & ContextFlags.Signature || isReturnExpressionLiteralContext(node)) && some(inferenceContext.inferences, hasInferenceCandidatesOrDefault)) {
3200032000 // For contextual signatures we incorporate all inferences made so far, e.g. from return
3200132001 // types as well as arguments to the left in a function call.
3200232002 return instantiateInstantiableTypes(contextualType, inferenceContext.nonFixingMapper);
@@ -32463,7 +32463,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
3246332463 if (typeTagSignature) {
3246432464 return typeTagSignature;
3246532465 }
32466- const type = getApparentTypeOfContextualType(node, ContextFlags.ContextualSignature );
32466+ const type = getApparentTypeOfContextualType(node, ContextFlags.Signature );
3246732467 if (!type) {
3246832468 return undefined;
3246932469 }
@@ -40718,7 +40718,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4071840718 (isPropertyAssignment(parent) || isShorthandPropertyAssignment(parent) || isTemplateSpan(parent)) && isConstContext(parent.parent);
4071940719 }
4072040720
40721- function checkExpressionForMutableLocation(node: Expression, checkMode? : CheckMode, forceTuple?: boolean): Type {
40721+ function checkExpressionForMutableLocation(node: Expression, checkMode: CheckMode | undefined , forceTuple?: boolean): Type {
4072240722 const type = checkExpression(node, checkMode, forceTuple);
4072340723 return isConstContext(node) || isCommonJsExportedExpression(node) ? getRegularTypeOfLiteralType(type) :
4072440724 isTypeAssertion(node) ? type :
0 commit comments