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 @@ -11525,10 +11525,10 @@ namespace ts {
11525
11525
if (!couldContainTypeVariables(target)) {
11526
11526
return;
11527
11527
}
11528
- if (source.flags & ( TypeFlags.Any | TypeFlags.Never) && source !== silentNeverType ) {
11529
- // We are inferring from 'any' or 'never' . We want to infer this type for every type parameter
11530
- // referenced in the target type, so we record the propagation type and infer from the target
11531
- // to itself. Then, as we find candidates we substitute the propagation type.
11528
+ if (source.flags & TypeFlags.Any) {
11529
+ // We are inferring from an 'any' type . We want to infer this type for every type parameter
11530
+ // referenced in the target type, so we record it as the propagation type and infer from the
11531
+ // target to itself. Then, as we find candidates we substitute the propagation type.
11532
11532
const savePropagationType = propagationType;
11533
11533
propagationType = source;
11534
11534
inferFromTypes(target, target);
You can’t perform that action at this time.
0 commit comments