File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23778,14 +23778,14 @@ namespace ts {
23778
23778
const constructSignature = getSingleSignature(type, SignatureKind.Construct, /*allowMembers*/ true);
23779
23779
const signature = callSignature || constructSignature;
23780
23780
if (signature && signature.typeParameters) {
23781
- if (checkMode & CheckMode.SkipGenericFunctions && getSingleCallOrConstructSignature(type)) {
23782
- skippedGenericFunction(node, checkMode);
23783
- return anyFunctionType;
23784
- }
23785
23781
const contextualType = getApparentTypeOfContextualType(<Expression>node);
23786
23782
if (contextualType && !isMixinConstructorType(contextualType)) {
23787
23783
const contextualSignature = getSingleSignature(getNonNullableType(contextualType), callSignature ? SignatureKind.Call : SignatureKind.Construct, /*allowMembers*/ false);
23788
23784
if (contextualSignature && !contextualSignature.typeParameters) {
23785
+ if (checkMode & CheckMode.SkipGenericFunctions) {
23786
+ skippedGenericFunction(node, checkMode);
23787
+ return anyFunctionType;
23788
+ }
23789
23789
const context = getInferenceContext(node)!;
23790
23790
// We have an expression that is an argument of a generic function for which we are performing
23791
23791
// type argument inference. The expression is of a function type with a single generic call
You can’t perform that action at this time.
0 commit comments